Hey everyone,
i’m new to suse and i using openSuse Leap 15.03
my problem is i can’t running any software installed using snap
for example i wanna run the Okular from snap but i get this error :
$ snap run okular
qt.qpa.xcb: could not connect to display :1.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.
Aborted (core dumped)
again for Postman :
$ snap run postman
The disableGPU setting is set to undefined
Not disabling GPU
The futex facility returned an unexpected error code.Aborted (core dumped)
Hello, seeing you are new here, welcome to the openSUSE forums.
Maybe you camn describe more in detail what you are doing. E.g. most people would start Ocular simply from the main menu of their desktop (it is a GUI program after all). so why are you tryng to run ocular using snap, it is normally installed at system installation. Or are you just using it as an example?
In your case it is not even clear if you are running a desktop and when yes, you did not specify which one.
As the message says, the program (probably ocular) can not find, or has no permission to use, a graphical display (display 1:0).
P.S. the name of this distribution is openSUSE (not openSuse) and the version is Leap 15.3 (not 15.03). You can see the proper spellings all over the the web-sites. And mind that precision is crucial in computer handling and thus misspelling can be a sign of sloppy working with computers also
the Okular was added to my application menu but when I was trying to open it, nothing happened so I’m running using CLI to see what is the problem
and it’s for just an example to show my problem with snap(actually my main problem is I can’t run any software installed using the snap store not only Okular that was an example , with GUI or even with CLI ), any software I installed using snap was added to my application menu but I can’t run them and you can see my output while I’m trying to run using CLI interface
I’m using Xfce desktop and if any commands need to be run for more information tell me to run them
output of snap version command
$ snap --version
snap 2.54.4-lp152.1.1
snapd 2.54.4-lp152.1.1
series 16
opensuse-leap 15.3
kernel 5.3.18-150300.59.54-default
this is another output of telegram-desktop when i want run using snap:
$ snap run telegram-desktop
No protocol specified
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Aborted (core dumped)
oh you right IDK why i install the wrong version but now i upgrade it to 15.3 but the problem still exist, after upgrade should i do anything else? i used this link for upgrade to correct version
i tested an CLI program like **links **it’s running without any problem, but GUI program like VLC, telegram-desktop, Okular and … still have that problem
and if i run this manually in terminal it’s should not have different and the result should be same i think (i run this command again and get the previous error message)
As I said, there is no access to the display 1:0. You now granted access. But that should not be needed if you start it from within the current Xfce session (using a terminal emulator that run also inside that session.
And running all of them is a bit overdone. I hope you are aware that you now allow all in the world to open windows on your session.
I cannot reproduce it. I installed snapd from [noparse]system:snappy[/noparse], started snapd and snapd.apparmor services, installed okular snap (snap install okular). After that “snap run okular” starts Okular window. I use lightdm with automatic logon and display number is [noparse]:0.0[/noparse], not [noparse]:1.0[/noparse] as in your case.
If you are interested in finding root cause, some random shots. Post full protocol of
loginctl
snap info okular
env | grep -E 'DISPLAY|XAUTHORITY'
snap run --shell okular
env | grep -E 'DISPLAY|XAUTHORITY'
I comment these command on **/etc/profile.local **
#xhost +si:localuser:root
#xhost +local:
and reboot my PC then run your commands:
$ xhost -
access control enabled, only authorized clients can connect
$ snap run okular
No protocol specified
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.
Aborted (core dumped)
but if again i remove the comment of those command on **/etc/profile.local file and again reboot my PC, it’s will work fine and after running snap run okular **it show me the Okular window