Electron apps work ONLY with --disable-gpu

vscode doesn’t work at all.
I tried opening it without tags (they are still passed down because of environment.sessionVariables.NIXOS_OZONE_WL = “1”:wink: and with
code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --enable-features=WaylandWindowDecorations
It opens a completely invisible window, but apparently it still is usable if you are daredevil.
Also, this gets logged each time I try opening vsc.

Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-wayland-ime' is not in the list of known options, but still passed to Electron/Chromium.

Obsidian does open, but with graphical glitches, so it is completely unusable.

I use nvidia gpu and have followed the wiki setting up my gpu.
The ONLY THING that makes electron apps usable is --disable-gpu tag. Any help?

Try without NIXOS_OZONE_WL set (remove it from config and reboot). Ozone wayland is still not great at the moment.

1 Like

Surprisingly, that did work. Thanks.
UPD: it doesn’t open with wayland tags

Yes, it will open under xwayland. Like I said about the state of ozone wayland atm…

1 Like