> The Ubuntu session sets DesktopNames to ubuntu:GNOME with a colon.
Are you sure? Be careful: the list separator in .desktop files is a semicolon, but the list separator in the XDG_CURRENT_DESKTOP environment variable is a colon.
I'm not running Ubuntu, but what I see in Debian is that GNOME variants like Budgie and GNOME Flashback set DesktopNames to a semicolon-separated list (trailing semicolon is optional but recommended) like DesktopNames=Budgie;GNOME or DesktopNames=GNOME-Flashback;GNOME;.
The result of setting DesktopNames like that is a colon-separated list (with no trailing colon) in XDG_CURRENT_DESKTOP, like XDG_CURRENT_DESKTOP=Budgie:GNOME or XDG_CURRENT_DESKTOP=GNOME-Flashback:GNOME.
> The Ubuntu session sets DesktopNames to ubuntu:GNOME with a colon.
Are you sure? Be careful: the list separator in .desktop files is a semicolon, but the list separator in the XDG_CURRENT_DESKTOP environment variable is a colon.
I'm not running Ubuntu, but what I see in Debian is that GNOME variants like Budgie and GNOME Flashback set DesktopNames to a semicolon-separated list (trailing semicolon is optional but recommended) like DesktopNames= Budgie; GNOME or DesktopNames= GNOME-Flashback ;GNOME; .
The result of setting DesktopNames like that is a colon-separated list (with no trailing colon) in XDG_CURRENT_ DESKTOP, like XDG_CURRENT_ DESKTOP= Budgie: GNOME or XDG_CURRENT_ DESKTOP= GNOME-Flashback :GNOME.