PDA

View Full Version : Logout != shutdown



arkaine23
07-15-2003, 11:46 PM
I want to make my remaster dump the user back to text mode instead of sutting down whenever they logout out of the WM (generally KDE). I made a ~/.xinitrc so they can use startx to get back to a window manager from text mode. But how to I make KDE and other WM's change their default action on logout from shutdown to just return to text mode?

xunileca
07-27-2003, 07:21 PM
AFAIK, when you use a display manager (which is the default) logout always = shutdown. What you want to do is disable any display managers (kdm for kde) (gdm for gnome) (xdm for generic X) and use a startx script. If you want it to boot graphically first and then give text console if they logout, the following worked for me.

in /etc/init.d/xsesison change the line that looks like
su -c "DISPLAY=:0 exec /usr/bin/startkde" - $USER
with
su -c "DISPLAY=:0 exec /etc/X11/xinit/xinitrc" - $USER

and change /etc/X11/xinit/xinitrc to look something like this:

PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/games:/usr/local/bin:."
export PATH
exec xloadimage -fullscreen -onroot -center -border black -quiet /usr/local/lib/whatever_file_you_want.jpg&
exec fluxbox -display :0

And that did it for me. Let me know.