Wayland: Difference between revisions

Pigs (talk | contribs)
Add opening statement, link to manual, add see also section, add category desktop
Malix (talk | contribs)
m Electron and Chromium: general enhancements
Line 42: Line 42:


==== Electron and Chromium ====
==== Electron and Chromium ====
Ozone Wayland support in [[Chromium]] and [[Electron]] based applications (which allow these applications to run on Wayland native instead of Xwayland) can be enabled by setting the environment variable "<code>NIXOS_OWONE_WL</code>" with <code>NIXOS_OZONE_WL=1</code>


<!-- I kept getting META error when trying {{ic|NIXOS_OZONE_WL=1}}, and replacing the equals with &equals; didn't work either — does anyone know how to markup this correctly? -->
===== Example =====
As of NixOS 22.05 ("Quokka"), you can enable Ozone Wayland support in [[Chromium]] and [[Electron]] based applications by setting the environment variable <code>NIXOS_OZONE_WL=1</code>. For example, in a {{ic|configuration.nix}}:
{{File|3=environment.sessionVariables.NIXOS_OZONE_WL = "1";|name=/etc/nixos/configuration.nix|lang=nix}}
 
<syntaxhighlight lang="nix">
environment.sessionVariables.NIXOS_OZONE_WL = "1";
</syntaxhighlight>
 
This allows these applications to run without Xwayland.


== See also ==
== See also ==