Skip to main content

parse_linux_desktop

Function parse_linux_desktop 

Source
pub fn parse_linux_desktop(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.