Wayland / Linux not working (fixed)

Bug report

Inkdrop does not run with Wayland under Linux.

$ inkdrop
(inkdrop:163228): Gtk-WARNING **: 19:57:47.587: cannot open display: :0

Info

  • Platform: Ubuntu
  • Platform version: 20.04
  • App Version: current Snap version

Reproduce

Run with Wayland session.

Hi Marco,

Thank you for the report.
Unfortunately, Electron does not support Wayland at the moment.

This is odd as I don’t have problems with other electron apps (Wire, VS Code, Slack, Joplin for example).

Maybe they have some patch but I can’t find that Electron supports it out of the box right now.
Or you are missing something on how you run the app.

Found the same issue on another app, the same conclusion that we have to wait for Electron to support Wayland:

It seems more like a problem when Electron apps are packaged as a Snap.

There is a fix mentioned here (https://github.com/sindresorhus/caprine/issues/1006):
https://github.com/electron-userland/electron-builder/commit/2278c2a

Btw: The Snap version of Insomnia works on Wayland nowadays (just tried it).

Thank you! I’ll try it.

I added DISABLE_WAYLAND=1 env variable to the snapcraft.
Could you try it?:

$ sudo snap install --edge inkdrop

The package build number is 30.

1 Like

It works - great, thank you.
Now also Fedora users where Wayland is the default could use it :slight_smile:

1 Like

Cool!! Thank you for letting me know :smiley:
Cheers