Although it's not in the spec yet, it makes sense to allow users to override the default XFCE menu environment value, so the panel is usable in other environment too or give users a change to show all applications in the menu (export XDG_CURRENT_DESKTOP="") /* if the value is unset, fallback to XFCE, if the * value is empty, allow all applications in the menu */ desktop = g_getenv ("XDG_CURRENT_DESKTOP"); if (G_LIKELY (desktop == NULL)) desktop = "XFCE"; else if (*desktop == '\0') desktop = NULL; garcon_set_environment (desktop);
Applied in 8526855.