home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!chalmers.se!etek.chalmers.se!tl
- From: tl@etek.chalmers.se (Torbj|rn Lindgren)
- Newsgroups: comp.windows.x
- Subject: Re: X client that just sits and waits?
- Message-ID: <1992Dec13.102501.21295@etek.chalmers.se>
- Date: 13 Dec 92 10:25:01 GMT
- References: <1992Dec9.104532.24382@fwi.uva.nl> <1992Dec12.032847.12529@aw2.fsl.ca.boeing.com>
- Sender: Torbjorn Lindgren
- Organization: Chalmers University of Technology, Gothenburg, Sweden
- Lines: 28
-
- >> I am looking for a very simple (X) program: one that just waits forever
- >> (until it gets killed). The reason for this is that I want to be able to
- >> select a different window manager from within the current one, which is
- >> impossible if 'mwm' is the last program invoked in my .xinitrc (Of course,
- >> if such an 'xnop' or 'xwait' or whatever it may be called does not exist,
- >> I can always use some other client as the last one, but then I could never
- >> kill this one without killing X...)
- >
- > Try this in your transfer option for your menu.
- > (I presume you are working in a UNIX environment.)
- >
- > f.exec switch_window_manager
- >
- > Where switch_window_manager is a script that kills
- > the first window manage then using the Unix utility
- > 'sleep' or the shell function 'eval' wait for the first
- > window manager to die. Once the first window manager
- > is dead, then use the shell function 'exec' to start
- > the second window manager.
-
- The problem is that you have have something that holds your session
- alive. Normally you use the window-manager to do that task. But you
- can`t do that if you wan`t to be able to change window-manager on the
- fly. You`ll have to use some other program for that purpose.
-
- Personally I use an xconsole window for that purpose. You don`t need
- to use sleep or anything like that when killing the window-manager
- since kill doesn`t return until the programm is killed.
-