From 7f51164f95ccc6cf5be01f15a075a940b3cb25b4 Mon Sep 17 00:00:00 2001 From: fuggy <45698918+nonetrix@users.noreply.github.com> Date: Fri, 21 Jun 2024 01:53:05 -0500 Subject: [PATCH] Document `NIXOS_OZONE_WL=1` Documents nifty NixOS specific environment variable that allows Electron apps to run under Wayland --- pages/Getting Started/Master-Tutorial.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/Getting Started/Master-Tutorial.md b/pages/Getting Started/Master-Tutorial.md index c8949ce..d315801 100644 --- a/pages/Getting Started/Master-Tutorial.md +++ b/pages/Getting Started/Master-Tutorial.md @@ -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 use `NIXOS_OZONE_WL=1`. For most electron apps, you should put the above in `~/.config/electron-flags.conf`. VSCode is known to not work with that though.