Scott Barber <sbarber_at_chrl.inri.com> writes:
> Hello all,
> I've searched the archives and haven't found and answer to my question,
> so I thought I give this a shot.
>
> I have an application currently written to user motif as a window
> manager and if the window manager dies motif automatically restarts.
> The test for motif running is XmIsMotifWMRunning(). I'm sure it is
> possible to test for other window managers running, but I'm not sure
> how. Do es anyone have any ideas about how to go about this?
There are lots of ways. My favorite:
In my .xinitrc:
loopwm fvwm2 &
And the "loopwm" shell:
#first run the wm, then prompt for which one to run next":
wm=$_at_
while [ 0 ] ; do
$wm
wm=`xprompt -geometry +100+100 -re -warp -rlen 44 \
-p 'WM/end (fvwm2, twm, mwm, olwm)'`
if [ "$wm" = "end" ] ; then
exit
fi
done
This allows me to quit out of the WM and pick another one to run.
(There are a few versions of xprompt I've run into, the exact command
needed may vary.)
> Thanks,
>
> Scott Barber
--
Dan Espen
444 Hoes Lane Room RRC 1C-214 E-mail: dane_at_mk.bellcore.com
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Feb 05 1999 - 14:19:48 GMT