Default xinitrc file
Hello! On lines 48 if [ -d /usr/X11/lib/X11/xinit/xinitrc.d ] ; then 49 for f in /usr/X11/lib/X11/xinit/xinitrc.d/*.sh ; do 50 [ -x "$f" ] && . "$f" 51 done 52 unset f 53 fi the xinitrc file checks whether there are some shell scripts to execute, for example -rwxr-xr-x 1 pete admin 718 24 Nov 12:27 10-fontdir.sh -rwxr-xr-x 1 pete admin 53 24 Nov 12:27 99-quartz-wm.sh then a window manager and some X clients are are prepared for launching: 57 twm & 58 xclock -geometry 50x50-1+1 & 59 xterm -geometry 80x50+494+51 & 60 xterm -geometry 80x20+494-0 & 61 exec xterm -geometry 80x66+0+0 -name login I see one problem (two on Tiger) with /usr/X11/lib/X11/xinit/ xinitrc.d/99-quartz-wm.sh and its contents, a one-liner: [ -x /usr/bin/quartz-wm ] && exec /usr/bin/quartz-wm (on Tiger quartz-wm lives in /usr/X11R6/bin) which IMO stops execution of the xinitrc file on line #50 because of the "exec" keyword. So no X clients are launched. Am I wrong? -- Greetings Pete Make it simple, as simple as possible but no simpler. – Albert Einstein
On Dec 1, 2008, at 13:35, Peter Dyballa wrote:
I see one problem (two on Tiger) with /usr/X11/lib/X11/xinit/ xinitrc.d/99-quartz-wm.sh and its contents, a one-liner:
[ -x /usr/bin/quartz-wm ] && exec /usr/bin/quartz-wm
(on Tiger quartz-wm lives in /usr/X11R6/bin) which IMO stops execution of the xinitrc file on line #50 because of the "exec" keyword. So no X clients are launched.
Am I wrong?
Well... that init script is only distributed to Leopard systems, so it's not really an issue...
+ Peter Dyballa <Peter_Dyballa@Freenet.DE>:
I see one problem (two on Tiger) with /usr/X11/lib/X11/xinit/xinitrc.d/99-quartz-wm.sh and its contents, a one-liner:
[ -x /usr/bin/quartz-wm ] && exec /usr/bin/quartz-wm
(on Tiger quartz-wm lives in /usr/X11R6/bin) which IMO stops execution of the xinitrc file on line #50 because of the "exec" keyword. So no X clients are launched.
Am I wrong?
No, and I expect that is the way it is designed. The stuff at the end of the xinitrc seems to me just a fallback in case quartz-wm has gone missing. (Note that twm is among the programs started. You cannot have more than one window manager running.) To run X clients of your own choosing, take a look inside /usr/X11/lib/X11/xinit/xinitrc.d/98-user.sh and put your own stuff in ~/.xinitrc.d/*.sh. Indeed, if you wish to run a window manager other than quartz-wm, this may be a good place to exec your own. - Harald
participants (3)
-
Harald Hanche-Olsen
-
Jeremy Huddleston
-
Peter Dyballa