I run Manjaro GNOME with a HiDPI monitor and fractional scaling. Electron apps like Brave/Chrome, Slack, vscode, etc. are blurry because of fractional scaling.
I found that adding -enable-features=UseOzonePlatform -ozone-platform=wayland to the exec command solves this. (source)
While it is doable to copy every electron’s .desktop file to ~/.local/share/applications and edit it, I’m curios if there’s a better way.
Is there a centralized config option for electron in general? This would save time and won’t mess with the desktop files.
Follow-up question. The two tags remove the gnome window decoratio/title bar (what’s the correct name for it?). Therefore, I can’t rescale or close the windows.
My other laptop is running GNOME on Wayland with an AMD APU. I do not have fractional scaling enabled.
Yes, you’ll need one for each version of Electron installed like it mentions in the wiki article. The easiest way is to create symlinks of electron-flags.conf for the other versions; i.e., for electron14:
There are multiple versions of Electron. See which versions you have installed and what requires them:
❯ pacman -Qs electron
local/electron 15.2.0-1
Build cross platform desktop apps with web technologies
local/electron10 10.4.7-2
Build cross platform desktop apps with web technologies
local/electron11 11.5.0-2
Build cross platform desktop apps with web technologies
local/electron13 13.5.2-1
Build cross platform desktop apps with web technologies
local/electron9 9.4.4-3
Build cross platform desktop apps with web technologies
You could also create symlinks for every Electron version and not worry about it for now. However, you’d have to create an electron15-flags.conf when the electron package is updated to 16.