🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #54

improving window startup time in 4Dwm

#54
From: Michael Halle
Date: Tue, 22 Dec 1992 19:43
29 lines
1847 bytes
4Dwm, and mwm before it, by default execs your $SHELL shell to start up
all exec'ed applications in your .4Dwmrc/.mwmrc .  OSF/Motif did this
in version 1.0, and there was no way to change it other than feeding it
an altered $SHELL.

To me, this was a really dumb default; /bin/sh would have been a much
more sensible choice.  The more heavyweight shells take longer to
start up, so all applications (including "Do you really want to 
log out now?") take at least shell startup time to start.

Shells such as csh and tcsh also produce the "[1] 1023" messages in
your console window every time an application is started from a menu.

Not to mention the fact that it is impossible to put any shell commands
in you wm startup files, because who knows what shell a user is running.

Luckily, the environment variable MWMSHELL was added in the second 
release of Motif, and is available in 4Dwm.  I heartily recommend
adding "MWMSHELL=/bin/sh; export MWMSHELL" to your Xsession file
before the window manager is started.  

To notice the improvment, log out, log back in again, and log out. 
See how the dialog box comes up pleasingly fast the second time.
The smallest things make computers seem faster, somehow....

						Michael Halle
						MIT Media Lab
						halazar@media.mit.edu
Technical Details
Message-ID: <HALAZAR.92Dec22144358@media-lab.media.mit.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.misc
Path: arc1-ca.pugleaf.net!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
From: halazar@media.mit.edu (Michael Halle)
Subject: improving window startup time in 4Dwm
Message-ID: <HALAZAR.92Dec22144358@media-lab.media.mit.edu>
Sender: news@news.media.mit.edu (USENET News System)
Organization: M.I.T. Media Laboratory
Date: Tue, 22 Dec 1992 19:43:58 GMT
Lines: 29