Still having blurry Electron apps despite ELECTRON_OZONE_PLATFORM_HINT=wayland

I’ve already tried and added ELECTRON_OZONE_PLATFORM_HINT=wayland to my hyprland.conf but Discord, Spotify, and other Electron apps are still pixelated/blurry on my 2560x1600@165Hz display. And have also tired “xwayland {force_zero_scaling = 1 }". None seem to fix the blurry/pixelated problem. Are there any fixes to this problem?

Screenshots

For my case, I just need to reboot, because new env simply not recognized by system.

The default Discord and Spotify apps, do not use the system wide Electron. They ship their own and so the system wide settings would be ignored by them.

Some of these like Spotify, offer a config file called spotify-flags.conf that lets you put Electron options there. So read their docs.

For some others like Discord, you’d have to edit the .desktop file and explicitly add the options to the command that launches Discord.

That’s true. For Discord, you can also use an alternative client like e.g. Webcord. Other than that, what has been said above is accurate

The options you want are:


--enable-features=UseOzonePlatform --ozone-platform=wayland

You should put them in the command line in the desktop file (or in spotify-flags.conf for spotify)

I got it working is there a way to make the change permanent so that future updates don’t overwrite the config? (sorry mb, for the duplicate replays)

Where did you make the change?

If you’re using the system location for desktop files, you can copy it to $XDG_DATA_HOME/applications and it won’t get clobbered by updates. [ArchWiki: Desktop entries]

I find this particularly useful for hiding desktop files that don’t really make sense to appear in a launcher, like the emacs daemon.

I am having a similar problem with some Electron apps but this:

–enable-features=UseOzonePlatform --ozone-platform=wayland

no working on my case, instead app don’t start, and i have this on hyprland config:

env = GDK_BACKEND,wayland,x11

when i delete x11, applications (NosqlBooster for mongodb, Termius e.g) don’t start also, my problem is that in x11, menus are wrong

Unfortunately, this seems to be a longstanding Electron bug, not something related to Hyprland specifically.

Related Electron issues:

Basically, many Electron apps only work properly when running under xWayland, rather than native Wayland.