Linux: How to approach X11/Wayland platform differences ( particularly #1262 )
Homework
- I looked at
nativefier --helpand https://github.com/nativefier/nativefier/blob/master/API.md , no existing option fits my needs. - I searched existing issues, open & closed. Yes, my feature request is new.
- I'm using the latest version available at https://github.com/nativefier/nativefier/releases
Problem statement
Nativefier 47's update to electron 18 can resolve linux-wayland issue https://github.com/nativefier/nativefier/issues/1262 , but only if a user adds in options --ozone-platform=wayland --enable-features=WaylandWindowDecorations on their own at runtime.
Suggested solution
Nativefier could discern between the linux-x11 and linux-wayland platforms and add the appropriate options in the runtime.
Alternative solutions
Add documentation around creating linux desktop entries about adding --ozone-platform=wayland --enable-features=WaylandWindowDecorations. A linux user currently already has to create a desktop entry with nativefier.
Context
I'm adding this issue for conversation to ask what the appropriate solutions should be for those actively using nativefier on linux.
- Nativefier: 47
- OS: Ubuntu 21.10
Source: nativefier/nativefier