Hi, having some trouble getting a snap to run on platforms that use the Wayland window manager since upgrading our codebase to Electron 2.0.0. So far we’ve been able to get the snap working on the following…
Ubuntu 17.10 (with x11 window manager)
But we’re seeing it not work on the following…
Ubuntu 17.10 (with Wayland window manager)
When we launch the app it quits shortly after, no error to the console. Using strace we’re able to get a non-sensible 1 exit code but no other useful information.
I’ve put a barebones example repo together that demonstrates the problem. It’s the simplest electron app that just loads ubuntu in a window. You can give it try with the following…
If it is getting disconnected from the display server, one thing that might be worth trying is to set WAYLAND_DEBUG=1 in the environment when running the app. This will turn on a lot of debug logging in the libwayland-client library.
I’ve seen cases where clear error messages from the server were not surfaced by GTK but could be seen in the libwayland-client debug logs, so it is possible that might give a hint about what is going on.
Also, are you saying that your app always fails on Wayland, or just when it is packaged as a snap?
It might also be worth noting that the previous version of Electron (1.8.*) was working fine with this config & Wayland. I think Electron moved from gtk-2 to gtk-3 between 1.8 and 2.0. I was wondering if this could be the cause of any of the problems?
IIRC, GTK 2.0 doesn’t support Wayland, so you’d likely have been running via Xwayland (the service that allows legacy X11 apps to display on a Wayland desktop). So Electron 2 might be the first time your app tried to run under Wayland natively.