People have asked, though I can't recall who most recently, about having one .xinitrc file that runs the correct window manager, depending upon how X is started...

I added the following to the end of my .xinitrc file and it seems to work. This relies on the defaults command given earlier to force XDarwin to use display :1, instead of the default of :0 (you can also edit ~/Library/Preferences/org.xfree86.XDarwin.plist with a text editor and change the Display parameter):

if [ X$DISPLAY = "X:0" ]; then
#
# Assume Apple X11 and start up accordingly
#
/usr/X11R6/bin/xterm -geometry 80x20+0+0 &
exec /usr/X11R6/bin/quartz-wm
else
#
# Assume XDarwin
#
/sw/bin/autocutsel &
exec /sw/bin/gnome-session
fi

Obviously, choose the window manager you wish to use in both. This seems to work for me, though I wonder why the display var is set to :0 and :1 as opposed to :0.0 and :1.0, as they are once an x application is running... perhaps someone more familiar with X can chime in with the answer...



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to