So lightdm is doing something wrong imho: it's not "dereferencing" the default.desktop symlink to the real xubuntu.desktop, instead it's displaying two sessions as if they were distinct. Moreover, as it uses "default.desktop" as the key for the first session, all our xdg scripts are gonna break (because DESKTOP_SESSION=default instead of DESKTOP_SESSION=xubuntu will fill XDG_{CONFIG,DATA}_DIRS with incorrect paths).
(of course, I explicitly warned about this wrong behavior in another bug report when this feature was presented...)
Thanks.
First session: COOKIE= b9aed8166d79d59 30576ff4d0226ad 3e-1312294437. 696917- 1933059891 GDMSESSION=default RUNNING_ UNDER_GDM= yes LANG=en_US.UTF-8 USERNAME=ubuntu DESKTOP_ SESSION= default USER=ubuntu SHELL=/bin/bash PATH=/usr/ local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games /usr/sbin/ lightdm- session 'startxfce4'
> [+207.64s] DEBUG: Launching process 2979: DISPLAY=:0 HOME=/home/ubuntu XDG_SESSION_
Second session: COOKIE= b9aed8166d79d59 30576ff4d0226ad 3e-1312295115. 864867- 1990294184 GDMSESSION=xubuntu RUNNING_ UNDER_GDM= yes LANG=en_US.UTF-8 USERNAME=ubuntu DESKTOP_ SESSION= xubuntu USER=ubuntu SHELL=/bin/bash PATH=/usr/ local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games /usr/sbin/ lightdm- session 'startxfce4'
> [+885.81s] DEBUG: Launching process 3417: DISPLAY=:0 HOME=/home/ubuntu XDG_SESSION_
So lightdm is doing something wrong imho: it's not "dereferencing" the default.desktop symlink to the real xubuntu.desktop, instead it's displaying two sessions as if they were distinct. Moreover, as it uses "default.desktop" as the key for the first session, all our xdg scripts are gonna break (because DESKTOP_ SESSION= default instead of DESKTOP_ SESSION= xubuntu will fill XDG_{CONFIG, DATA}_DIRS with incorrect paths).
(of course, I explicitly warned about this wrong behavior in another bug report when this feature was presented...)