Comment 6 for bug 327926

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I have added a similar functionality recently to be able to install more than one GNOME (or other) session with gdm:
- UNE is using that
- gnome-stracciatella is currently converted to it

The idea is simply to take the .desktop file name exported by GDM and add it to the xdg path with something like /etc/xdg/xdg-<session filename>.
For instance, I currently have: XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
If I boot on my une session, I'll have: XDG_CONFIG_DIRS=/etc/xdg/xdg-une:/etc/xdg

The script keep user's xdg path if he tweaked it. It is at /etc/X11/Xsession.d/60xdg_path-on-session and is shipped on the gdm package.

The drawback of that solution is that you'll have to move your conffiles to the new path /etc/xdg/xdg-<session filename>/autostart (for autostart desktop files)