Solved No protocol specified
-
Hi all
I am trying to deploy my app made with Qt5.
The environment is Debian10 and Qt5.11.3.
I added the following to .pro file:
target.path = / usr / local / bin /
INSTALLS + = targetafterwards
Executed make install.And when I run the executable file created in /usr/local/bin/
After the following warning, the app was executed.Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM = wayland to run on Wayland anyway.
Next, I put a png icon on the form with QtCreator and ran make install.
When the app was executed, the following warning message was displayed and could not be executed.Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM = wayland to run on Wayland anyway.
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display: 0
Could not connect to any X display.Why is this?
What should I do?Thank you.
-
Hi,
What desktop environment are you using ?
-
Thank you
I use Debian 10 as standard
So maybe GNOMU desktop -
You really should check because guessing won't help.
-
Certainly, It is GNOME
-
How are you trying to run the program? From a terminal window within the Desktop? Or are you shelled in via SSH or Telnet? What is the DISPLAY variable set to?
Edit: Found this on Fedora. https://bugzilla.redhat.com/show_bug.cgi?id=1752665 Do you have that qt wayland package installed?
-
The problem has been solved.
I installed it in / usr / local / bin as root, but it seemed that the owner of the executable file was left as root.
If I change the owner to user, I can execute it.
The warning remains.