[comp.windows.x] Exiting olwm

foster@SEQUOIA.CRAY.COM (Paul Foster) (01/18/91)

How do you set up .xinitrc so that when you use the WMEXIT 
property of olwm, all your windows will not be killed off?

Currently my .xinitrc looks like:

xrdb .Xdefaults&
eval `svenv -env`
olwm -3&
$HOME/.openwin-init
wait

When I use the WMEXIT property to exit olwm, all my windows
disappear and I am logged back out the console display.

Any suggestions?

Thanks.

Paul Foster
foster@sequoia.cray.com

smarks@eng.sun.COM (Stuart Marks) (01/23/91)

foster@sequoia.cray.com (Paul Foster) writes:
    How do you set up .xinitrc so that when you use the WMEXIT 
    property of olwm, all your windows will not be killed off?
    When I use the WMEXIT property to exit olwm, all my windows
    disappear and I am logged back out the console display.

The xinit program waits for the .xinitrc script to exit.  In your example,
quitting olwm causes the script to exit, which causes xinit to take down
the server.  If you want you session to outlive olwm, just put something
else in .xinitrc so that the script waits around for it instead of for
olwm.  For example:
    
    xrdb .Xdefaults
    eval `svenv -env`
    olwm -3 &
    $HOME/.openwin-init
    xterm -C -g 80x8 -name console

Note:  there is no '&' after the xterm console invocation.  This causes the
script to wait around until you exit the console xterm.  If you put this
into .xinitrc, you can kill and restart window managers pretty much with
impunity.

s'marks

Stuart W. Marks			ARPA: smarks@eng.sun.com
Windows & Graphics Software	UUCP: sun!smarks
Sun Microsystems, Inc.