home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / misc / 73 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.8 KB  |  40 lines

  1. Newsgroups: comp.sys.sgi.misc
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!uw-beaver!micro-heart-of-gold.mit.edu!news.media.mit.edu!news.media.mit.edu.!halazar
  3. From: halazar@media.mit.edu (Michael Halle)
  4. Subject: improving window startup time in 4Dwm
  5. Message-ID: <HALAZAR.92Dec22144358@media-lab.media.mit.edu>
  6. Sender: news@news.media.mit.edu (USENET News System)
  7. Organization: M.I.T. Media Laboratory
  8. Date: Tue, 22 Dec 1992 19:43:58 GMT
  9. Lines: 29
  10.  
  11.  
  12. 4Dwm, and mwm before it, by default execs your $SHELL shell to start up
  13. all exec'ed applications in your .4Dwmrc/.mwmrc .  OSF/Motif did this
  14. in version 1.0, and there was no way to change it other than feeding it
  15. an altered $SHELL.
  16.  
  17. To me, this was a really dumb default; /bin/sh would have been a much
  18. more sensible choice.  The more heavyweight shells take longer to
  19. start up, so all applications (including "Do you really want to 
  20. log out now?") take at least shell startup time to start.
  21.  
  22. Shells such as csh and tcsh also produce the "[1] 1023" messages in
  23. your console window every time an application is started from a menu.
  24.  
  25. Not to mention the fact that it is impossible to put any shell commands
  26. in you wm startup files, because who knows what shell a user is running.
  27.  
  28. Luckily, the environment variable MWMSHELL was added in the second 
  29. release of Motif, and is available in 4Dwm.  I heartily recommend
  30. adding "MWMSHELL=/bin/sh; export MWMSHELL" to your Xsession file
  31. before the window manager is started.  
  32.  
  33. To notice the improvment, log out, log back in again, and log out. 
  34. See how the dialog box comes up pleasingly fast the second time.
  35. The smallest things make computers seem faster, somehow....
  36.  
  37.                         Michael Halle
  38.                         MIT Media Lab
  39.                         halazar@media.mit.edu
  40.