Master tutorial: document NIXOS_OZONE_WL=1 (#693)

Documents nifty NixOS specific environment variable that allows Electron apps to run under Wayland

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
fuggy 2024-06-21 10:01:01 -05:00 committed by GitHub
parent 3322706708
commit 943133522f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,8 @@ A lot of apps will use Wayland by default. Chromium (and other browsers based on
it or electron) don't. You need to pass
`--enable-features=UseOzonePlatform --ozone-platform=wayland` to them or use
`.conf` files where possible. Chromium-based browsers also should have a toggle
in `chrome://flags`. Search for _"ozone"_ and select Wayland.
in `chrome://flags`. Search for _"ozone"_ and select Wayland. If you are on NixOS
you can also set the environment variable `NIXOS_OZONE_WL=1` in your configuration.
For most electron apps, you should put the above in
`~/.config/electron-flags.conf`. VSCode is known to not work with that though.