-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/1/10 3:15 PM, Robert J. Hansen wrote:
> On 1/1/10 2:23 PM, Alexander Hansen wrote:
>> A $HOME/.xinitrc worked normally for me (on 10.5 currently). What do
>> you have in the one you were trying, and what was the failure mode?
>
> I copied /usr/X11R6/lib/X11/xinit/xinitrc over to .xinitrc. The
> original contents of xinitrc follow, with some comments removed for
> terseness' sake:
>
> =====
> if test -r "/sw/etc/xinitrc-override"; then
> . "/sw/etc/xinitrc-override"
> elif test -r "/sw/bin/xinitrc.sh"; then
> . "/sw/bin/xinitrc.sh"
I think this is your problem. Your .xinitrc is handing control back
over to /sw/bin/xinitrc.sh if that exists, and so the stuff in your else
block below isn't being processed.
> else
> userresources=$HOME/.Xresources
> usermodmap=$HOME/.Xmodmap
> sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
> sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
> x_bindir=/usr/X11R6/bin
>
> if test -f $sysresources; then
> xrdb -merge $sysresources
> fi
>
> if test -f $sysmodmap; then
> xmodmap $sysmodmap
> fi
>
> if test -f $userresources; then
> xrdb -merge $userresources
> fi
>
> if test -f $usermodmap; then
> xmodmap $usermodmap
> fi
>
> case "`/usr/bin/uname -r`" in
> 7*|8*)
> if test -x "$x_bindir/xterm"; then
> termcmd="$x_bindir/xterm"
> else
> termcmd="xterm"
> fi
> $termcmd &
> ;;
> esac
>
> if type quartz-wm >/dev/null 2>&1; then
> sessionmgr="`which quartz-wm`"
> elif test -x "$x_bindir/twm"; then
> sessionmgr="$x_bindir/twm"
> else
> sessionmgr="twm"
> fi
> exec $sessionmgr
> fi
> =====
>
> In my locally-changed .xinitrc, I've changed "exec $sessionmgr" to "exec
> /sw/bin/metacity". I've made no other changes.
>
> From within Terminal.app, I execute "xeyes &" and X11.app opens up and
> xeyes opens -- but with quartz-wm running instead of metacity.
>
>
This xinitrc isn't actually from Apple, but installed by the fink
'xinitrc' package. Apple's is backed up in /usr/X11R6/lib/X11/xinit ,
though.
I'd recommend removing the first couple of lines (those mentioning /sw)
in your $HOME/.xinitrc and replacing them with just
source /sw/bin/init.sh
- --
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAks+XBwACgkQB8UpO3rKjQ8xoQCghp22umcKA4ZLXYJM9rPlqfu7
zx4AniQs6W07E3loLUGQ3dT28JL8SR6b
=jhqh
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users