🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36614

Quiting from twm

#36614
From: Morry Katz
Date: Mon, 05 Feb 1990 21:40
64 lines
2581 bytes
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
Technical Details
Message-ID: <KATZ.90Feb5134015@carbon.elements.rpal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!rex!ames!amelia!eos!shelby!carbon!katz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!rex!ames!amelia!eos!shelby!carbon!katz
From: katz@elements.rpal.com (Morry Katz)
Newsgroups: comp.windows.x
Subject: Quiting from twm
Message-ID: <KATZ.90Feb5134015@carbon.elements.rpal.com>
Date: 5 Feb 90 21:40:15 GMT
Sender: root@elements.rpal.com (Operator)
Reply-To: administrator@rpal.com
Distribution: comp
Organization: Rockwell International Palo Alto Lab
Lines: 64