I will start with a disclaimer, I know this has been talked about before but in searching this site and google I have not found the information I am looking for....
Now on to the questions. I now have a fresh install of MDK9.1 (will be gentoo when I can afford DSL). As with any box, the first thing I do is download and compile XFce4 to use as my desktop environment. (It rocks and beta1 is out now) Now, I would like to add this to GDM. In the past, working with development CVS builds, I used run level 3 and started XFce4 with startxfce4. I would like to get away from this since it will be more permanent now.
What I have found out:
I did a little digging and found the /etc/X11/gdm/Sessions dir. From what I can tell, all the scripts in here simply pass the desktop to be use to the /etc/X11/xdm/Xsession file.
Back tracking to this file, the Xsession file in turn simply passes this back to the /etc/X11/Xsession file. (I don't understand why this run around) Anyway, browsing through the /etc/X11/Xsession file I find nothing that calls IceWM, Gnome, or any other. It reads it into the variable DESKTOP but then doesn't use it except to check if it is the default... Well, not that I can tell.
The file then goes on to look for browsers and whatnot and starts wm if nothing is found.
What is the correct way to add XFce4 to GDM? I check the gdm config program but that is just for look and feel (themes). A few versions back you could add choices with its config program. I guess they thought that was too easy.
I have thought about adding the XFce4 file to /etc/X11/gdm/Sessions and with the following:
instead of using the Xsession files. I guess I want to know how this thing works as much as I want to have the option to login to XFce4.
Okay, I realize this was a long explanation. I would greatly appreciate some help in getting this setup correctly and not just hacked to work. I have done too much of that in the past and would really like to start doing things right!