Open roypen opened 4 years ago
It looks like Electron and Wayland are not compatible so disabling Wayland is the only fix as you have found. It looks like the issue can be mitigated in my app by setting the DISABLE_WAYLAND=1
in the snap's configuration file.
The upstream issue is electron-userland/electron-builder#4007 and a possible solution can be found here vladimiry/ElectronMail#104.
I will release a fix hopefully soon but a PR would also be accepted.
It looks like adding DISABLE_WAYLAND: 1
in environment section of .yaml file fixes the problem. I don't have .yaml source file to test it properly.
When running snap on Wayland (Fedora32), the application crashes with:
cannot open display: :0
Executing from command line with arguments:
DISABLE_WAYLAND=1 snap run electronplayer
solves the problem.appimage works ok.