Comment 10 for bug 819585

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thanks.

First session:
> [+207.64s] DEBUG: Launching process 2979: DISPLAY=:0 HOME=/home/ubuntu XDG_SESSION_COOKIE=b9aed8166d79d5930576ff4d0226ad3e-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'

Second session:
> [+885.81s] DEBUG: Launching process 3417: DISPLAY=:0 HOME=/home/ubuntu XDG_SESSION_COOKIE=b9aed8166d79d5930576ff4d0226ad3e-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'

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...)