itsmejoeeey / eversticky

A Linux open-source sticky note client that syncs to Evernote
https://eversticky.joeeey.com
GNU General Public License v3.0
59 stars 6 forks source link

Can't run in Wayland session #14

Open ibahnasy opened 2 years ago

ibahnasy commented 2 years ago

Ubuntu 22.04

$ QT_QPA_PLATFORM=wayland eversticky 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland-egl" in ""
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.

Aborted (core dumped)`
itsmejoeeey commented 2 years ago

Try launching with QT_QPA_PLATFORM=xcb eversticky

I haven't done any testing on Wayland - EverSticky doesn't officially support it at the moment. PR's welcome.

itsmejoeeey commented 2 years ago

Closing this issue as it has been inactive for 21 days.

keode commented 2 years ago

Try launching with QT_QPA_PLATFORM=xcb eversticky

I haven't done any testing on Wayland - EverSticky doesn't officially support it at the moment. PR's welcome.

Hi @itsmejoeeey I have met the same issue, and tried your fix, but the issue persists. By the way my eversticky was installed via snap. Could you please advise? Thanks.

ray@T480s:~$ QT_QPA_PLATFORM=xcb eversticky Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not find the Qt platform plugin "wayland-egl" in "" 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.

Aborted (core dumped) ray@T480s:~$

j-esse commented 1 year ago

As a workaround, you can run it with:

DISABLE_WAYLAND=1 eversticky
shmu26 commented 7 months ago

What command would work for the snap version? The deb version of eversticky works on Ubuntu 22.04 even in the default Wayland session. But the snap version gives the error that people have been complaining about.

j-esse commented 7 months ago

What command would work for the snap version? The deb version of eversticky works on Ubuntu 22.04 even in the default Wayland session. But the snap version gives the error that people have been complaining about.

It should be the same - the snap binary should be on your PATH. If not try:

DISABLE_WAYLAND=1 /snap/bin/eversticky