Wayland: Difference between revisions

Malix (talk | contribs)
m Applications: fix: typo
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Expansion|Verify accuracy of article}}
{{Expansion|Verify accuracy of article}}
[https://wayland.freedesktop.org/ Wayland] is a modern display server protocol intended as a replacement for the legacy [[Xorg | X11]] system.
For additional details, see {{NixOS Manual|anchor=#sec-wayland|name=NixOS Manual: Chapter - Wayland}}.


== Checking for Wayland ==
== Checking for Wayland ==
Line 38: 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_OZONE_WL</code>" with <code>NIXOS_OZONE_WL=1</code>
===== Example =====
{{File|3=environment.sessionVariables.NIXOS_OZONE_WL = "1";|name=/etc/nixos/configuration.nix|lang=nix}}


<!-- 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? -->
== See also ==
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}}:


<syntaxhighlight lang="nix">
* [[Xorg]]
environment.sessionVariables.NIXOS_OZONE_WL = "1";
</syntaxhighlight>


This allows these applications to run without Xwayland.
[[Category:Desktop]]