home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20170 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.8 KB

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