Link to home
Start Free TrialLog in
Avatar of uuccu
uuccu

asked on

Disable the session choose option on login screen of Fedora RC2

Hi is there anyway to disable the options in the login screen for changing the session type? I want to keep the options to reboot and shut down but not give the user the option to use a different session type ie Fail safe of kde. It should always login to GNOME

Im sure on either Suse or red hat 9 this was a simple thing to do but havent been able to find it on this version of Fedora . I can see how to disable the actions  ie shutdown, or restart from the login screen settings dialog, but can find nothing to do with the session type. I would not have thought this would be a difficult thing.

any ideas?
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Hi,

  Please edit /etc/X11/xdm/Xsession and comment out the selection in "case" condition.

Regards,

Wesly
Avatar of uuccu
uuccu

ASKER

ahh ok so is that the entire double nested case statement at the bottom of the file?
I tried commenting out both case statements, but after a restart at login a message said that my session only lasted a couple of seconds and ended, then recommended i fix my xsession file. So i guess i edited out the wrong case statements, could u be a bit more specific on which bit to edit out?

Many thanks
Oops, the case in /etc/X11/adm/Xsession is for ssh-agent.

Edit /etc/X11/xinit/Xclients as the follow:
------
PREFERRED=gnome-session
#if [ -f /etc/sysconfig/desktop ]; then
#    . /etc/sysconfig/desktop
#    if [ "$DESKTOP" = "GNOME" ]; then
#        PREFERRED=gnome-session
#    elif [ "$DESKTOP" = "KDE" ]; then
#        PREFERRED=startkde
#    elif [ "$DESKTOP" = "WINDOWMAKER" ]; then
#        PREFERRED=wmaker
#    fi
#fi
------
Then the only choose is GNOME.

Wesly
SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uuccu

ASKER

hhmmm strange I set both variables to false as you said but it only got rid of the Failsafe option, the gnome and default system session is still there. I should have said this is for a kiosk machine and i want it to go to the default system session (which is starts up a browser when the kiosk user logs in, this is set to automatically happen) but the user can press contol alt and back space to go back to the login screen. Its password protected anyway but I would like to restrict the ways a user can mess around with the system.

Ahh well, doesnt really matter im afraid nether of the suggested options appear to have worked... Any other ideas
What is your default session? If it's Gnome, I'd say you're done. If it's not, make it so. In gdm.conf:

# This is the default .desktop session.  One of the ones in SessionDesktopDir
#DefaultSession=default.desktop

Here's my setup, which actually reaped out all other entries from the session menu. It worked, to some extent. I could log into gnome session, but for some reason gdm thought that this is fail safe session. It was normal gnome session, though. The only option I had in the session menu was default session.

#SessionDesktopDir=/etc/X11/sessions/:/etc/dm/Sessions/:/usr/share/gdm/BuiltInSessions/:/usr/share/xsessions/
SessionDesktopDir=/usr/share/gdm/BuiltInSessions/
# This is the default .desktop session.  One of the ones in SessionDesktopDir
#DefaultSession=default.desktop
DefaultSession=gnome.desktop
ShowGnomeFailsafeSession=false
ShowXtermFailsafeSession=false
ShowLastSession=false