oscartbeaumont / ElectronPlayer

An Electron Based Web Video Services Player. Supporting Netflix, Youtube, Twitch, Floatplane, Hulu And More
MIT License
494 stars 93 forks source link

snap, wayland and cannot open display: :0 #73

Open roypen opened 4 years ago

roypen commented 4 years ago

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.

oscartbeaumont commented 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.

roypen commented 4 years ago

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.