Electron 12 introduced early Wayland support behind the flags --enable-features=UseOzonePlatform --ozone-platform=wayland
.
This gist adds these flags to the .desktop files of the selected Electron packages after every upgrade, so that they can be started from a launcher with Wayland enabled.
Will be deprecated after Electron eventually starts with Wayland by default without needing these flags.
- Copy
electron-wayland.sh
to /usr/local/sbin/electron-wayland.sh
- Add execution permissions to
/usr/local/sbin/electron-wayland.sh
(sudo chmod a+x /usr/local/sbin/electron-wayland.sh
)