mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-16 18:15:58 +01:00
Document NIXOS_OZONE_WL=1
Documents nifty NixOS specific environment variable that allows Electron apps to run under Wayland
This commit is contained in:
parent
cc1f67c242
commit
7f51164f95
1 changed files with 2 additions and 1 deletions
|
@ -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
|
it or electron) don't. You need to pass
|
||||||
`--enable-features=UseOzonePlatform --ozone-platform=wayland` to them or use
|
`--enable-features=UseOzonePlatform --ozone-platform=wayland` to them or use
|
||||||
`.conf` files where possible. Chromium-based browsers also should have a toggle
|
`.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
|
For most electron apps, you should put the above in
|
||||||
`~/.config/electron-flags.conf`. VSCode is known to not work with that though.
|
`~/.config/electron-flags.conf`. VSCode is known to not work with that though.
|
||||||
|
|
Loading…
Reference in a new issue