Skip to main content

detect_linux_de

Function detect_linux_de 

Source
pub fn detect_linux_de(xdg_current_desktop: &str) -> LinuxDesktop
Expand description

Parse XDG_CURRENT_DESKTOP (a colon-separated list) and return the recognized desktop environment.

Checks components in order; first recognized DE wins. Budgie is checked before GNOME because Budgie sets Budgie:GNOME.