PDA

View Full Version : systemwide default gdm session



seeker010
3rd June 2007, 06:40 PM
I installed fedora with no desktop manager and then installed XFCE through yum. However, the default gdm session is failsafe. Is there anyway to modify this to be XFCE systemwide? I can do it per user, but not every user I create is smart enough to realize this. Of course the workaround would be to log in every useer manually and change this once via, but there's got to be a more elegant solution.

ok I figured it out for FC6

edit /etc/sysconfig/desktop to read DESKTOP="XFCE4" and edit /etc/X11/xinit/Xclients to add the XFCE4 entry


GSESSION="$(which gnome-session 2>/dev/null)"
STARTKDE="$(which startkde 2>/dev/null)"
XFCE4="$(which startxfce4 2>/dev/null)"

# check to see if the user has a preferred desktop
PREFERRED=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DESKTOP" = "GNOME" ]; then
PREFERRED="$GSESSION"
elif [ "$DESKTOP" = "KDE" ]; then
PREFERRED="$STARTKDE"
elif [ "$DESKTOP" = "XFCE4" ]; then
PREFERRED="$XFCE4"
fi
fi


might work for F7 as well.