Function copypasta_ext::display::is_wayland
source · pub fn is_wayland() -> bool
Expand description
Check whether we’re in a Wayland environment.
This is a best effort, may be unreliable.
Checks the XDG_SESSION_TYPE
and WAYLAND_DISPLAY
environment variables.
Always returns false on Windows/macOS.
Available regardless of the wayland-*
compiler feature flags.