GNOME Bugzilla – Bug 654041
Respect XDG_CURRENT_DESKTOP
Last modified: 2011-08-12 08:34:08 UTC
XDG_CURRENT_DESKTOP is a proposal (not even in an XDG spec yet, just discussed on the mailing list) to define an environment variable that declares which XDG-registered environment the user is in (e.g. GNOME, XFCE, Unity). Relatedly, there is a patch to add support in gnome-menus in bug 653440. I'll work on a patch to support it in gnome-session (which would be useful for non-GNOME environments like Unity that also use gnome-session).
Created attachment 191357 [details] [review] Listen to XDG_CURRENT_DESKTOP
We only support cases where XDG_CURRENT_DESKTOP doesn't change with time, so I adapted the patch for this.