Skip to main content

detect_linux_desktop_env

Function detect_linux_desktop_env 

Source
pub fn detect_linux_desktop_env() -> DesktopEnvironment
Expand description

Detect the Linux desktop environment from environment variables.

Checks XDG_CURRENT_DESKTOP, DESKTOP_SESSION, and specific env markers to identify GNOME, KDE, XFCE, Cinnamon, MATE, Hyprland, Sway, i3, etc.