Makes sense. As previously raised by mterry it can't be done without putting the name in the xsession file [1] but his proposal makes sense.
[1] http://lists.freedesktop.org/archives/xdg/2011-July/012004.html ** Changed in: lightdm (Ubuntu) Status: New => Triaged ** Changed in: lightdm (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/1212408 Title: lightdm needs to set $XDG_CURRENT_DESKTOP Status in “lightdm” package in Ubuntu: Triaged Bug description: Since the switch to upstart, some processes in the user environment, such as gnome-screensaver, now get launched without $XDG_CURRENT_DESKTOP being set. This is currently causing screen locking issues. This used to get set by gnome-session, but it is no longer high enough in the process tree to set it for the complete user session. Consensus in #ubuntu-desktop was that lightdm should be setting it. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1212408/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

