katz@elements.rpal.com (Morry Katz) (02/06/90)
Sorry is this question has been addressed in the past, but I am not a regular reader of this news group. I can't seem to get twm to cause xdm to end the session when a user selects the f.quit menu item. Twm gets killed, but all of the windows stay around until I kill the console window (an xterm -C). I suspect that the problem is with my Xsession file which is a modified version of the one presented in the man pages. My configuation is as follows: 1) Xdm is brought up at boot time in /etc/rc.local. 2) My configuration file for xdm calls the following Xsession file: ------------------------------------------------------------------------ #!/bin/sh # # Xsession # # This is the program that is run as the client # for the display manager. This example is # quite friendly as it attempts to run a per-user # .xsession file instead of forcing a particular # session layout # case $# in 1) case $1 in failsafe) exec xterm -geometry 80x24-0-0 -ls ;; esac esac startup=$HOME/.xsession resources=$HOME/.Xresources if [ -f $startup ]; then exec $startup exec /bin/sh $startup else xrdb -load /usr/local/lib/x11/xdm/Xresources if [ -f $resources ]; then xrdb -merge $resources fi if [ -f $HOME/.twmrc* ]; then twm & else twm -f /usr/local/lib/x11/twm/system.twmrc & fi # Turn off error checking for compatibility with R2 and R3 # (needed by Allegro CL) xset bc & # Put up a clock xclock -geometry -0+0 & # Put up an emacs /usr/local/bin/emacs -geometry 80x60+0+95 & # Put up a terminal xterm -n "xterm@`hostname`" -geometry 80x24+500+0 -ls & # Put up a console window (gets error messages sent to the console) exec xterm -C -n "`hostname` console" -geometry 80x5+0+0 -sb -sl 100 -sk -ls fi ------------------------------------------------------------------------ 3) I do not have either any of .xsessions, .Xresources, or .twmrc in my home directory. Thanks for your help, Morry Katz
strauss@AEROSPACE.AERO.ORG (02/10/90)
In article <KATZ.90Feb5134015@carbon.elements.rpal.com> you write: > Sorry is this question has been addressed in the past, but I am not a > regular reader of this news group. > > I can't seem to get twm to cause xdm to end the session when a user > selects the f.quit menu item. Twm gets killed, but all of the windows > stay around until I kill the console window (an xterm -C). I suspect > that the problem is with my Xsession file which is a modified version > of the one presented in the man pages. > > My configuation is as follows: > <<< Stuff Deleted >>> XDM runs until the .Xsession finishes being executed. In your case, you end your .Xsession with an exec of xterm, so that becomes the "critical" client that XDM waits for. If you want XDM to end the session when the twm is quit, then exec twm as the final application in your .Xsession and make sure all the rest of the applications in your .Xsession are run in the background. - |Daryll ------------------------------------------------------------------------------- Daryll Strauss f The Aerospace Corp. strauss@aero.org n Mail Stop: M1-102 ...!uunet!aero.org!strauss o P.O. Box 92957 r Los Angeles, Ca. 90009 Suggestions for a quote to the address above. d (213) 336-9358 -------------------------------------------------------------------------------