Just to be more precise: XDG_CURRENT_DESKTOP will switch from "GNOME-Flashback:Unity" to "GNOME-Flashback:GNOME". It is standardized that the desktop name can have multiple components separated by semicolons, so one must not use plain comparisons.
Just to be more precise: XDG_CURRENT_DESKTOP will switch from "GNOME- Flashback: Unity" to "GNOME- Flashback: GNOME". It is standardized that the desktop name can have multiple components separated by semicolons, so one must not use plain comparisons.