ProtonMail / inbox-desktop

Desktop application for Mail and Calendar, made with Electron
GNU General Public License v3.0
63 stars 3 forks source link

bug: Doesn't run as a native Wayland application #21

Open onkoe opened 7 months ago

onkoe commented 7 months ago

Unfortunately, this app seems not to run under Wayland when given the option. Instead, it uses Xwayland, giving it an ugly title bar, worse performance, and bad fractional scaling (very blurry).

This issue affects all Electron apps, but can be mitigated by developers individually by overriding the option in their XDG Desktop files. You can read more about this on the related Electron PR: https://github.com/electron/electron/pull/35630

For now, users can pass an ozone-platform-hint flag to make the app run as expected: proton-mail --ozone-platform-hint=auto. They may also set ELECTRON_OZONE_PLATFORM_HINT=auto as an environment variable. This will apply to all Electron 28.0+ apps on a system! 😄️✨️

onkoe commented 7 months ago

another bug related to this feature: the webview seems to be offset on native wayland???

xwayland: image

native: image