Lenny, I don't think it's related to the user's default shell. X11 sets (or tries to) a default path, unless this is changed in .xinitrc (more about this below). Try to remove .xinitrc completely and check with
ps auxeww to see the environment. X11 is launched with PATH set to /usr/bin:/bin:/usr/sbin:/sbin:$HOME and X11 adds /usr/X11R6/bin to it. This choice can be amended in .xinitrc or changed completely. For example: ######### #!/bin/sh PATH = "$PATH:/sw/bin" export PATH /usr/X11R6/bin/xterm & exec /usr/X11R6/bin/quartz-wm ######### will add /sw/bin to the path already set by X11, then launch an xterm and the quartz-wm. This happens irrespectively of what your login shell is set to. It's possible that if there is no indication as to what shell to use, the X server will try to execute .xinitrc under /bin/sh -- and this would be reasonable, given that system scripts are usually /bin/sh scripts. I think it's a best practice to set .xinitrc and other similar things to be (ba)sh scripts, but maybe others disagree... But, does anyone know how to change the PATH set by the Xserver globally? (In a normal unix environment you would change the appropriate resource for xdm, or whatever login manager is used.) --Ettore -- Ettore Aldrovandi Department of Mathematics mailto:[EMAIL PROTECTED] Florida State University http://www.math.fsu.edu/~ealdrov >From: lenny bruce <[EMAIL PROTECTED]> >Subject: [Fink-users] I solved the Mysterious Apple X11 Path Problem >X-Original-Date: Thu, 9 Jan 2003 02:56:59 -0800 >Date: Thu, 9 Jan 2003 02:56:59 -0800 > >Apple's "X11 for Mac OS X" lives in bash. > > >I was still stuck thinking tcsh-like thoughts. > >Apple changed the default shell to bash starting in 10.2 >but that only applies to NEW USERS, not existing ones. > >The problem is, regardless of what shell you're using, >Apple's "X11 for Mac OS X" lives in bash... so you have to deal with it. >I took the big leap and changed my default shell to bash... >but my .bashrc wasn't being sourced. > >I tinkered about and did some research >and I'm not clear on why it won't source my .bashrc >but I did fix the problem overall: > >I edited /etc/profile and relaunched X11... and IT WORKED! >X11 can find everything and it actually respects my .xinitrc file now. > > >Notice that bash uses a slightly different syntax... > >> PATH="$PATH:/sw/bin:/sw/sbin:~/bin:~/sbin:~/usr/bin:~/usr/sbin" >> PATH="$PATH:~/usr/local/bin:~/usr/local/sbin:/opt/bin:/opt/sbin" >> PATH="$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" >> PATH="$PATH:/usr/X11R6/bin:/bin:/sbin:/sw/bin/mldonkey-distrib" >> export PATH > >It's not easy but it's worth it. > >lenny bruce I am not a comedian, >[EMAIL PROTECTED] I am Lenny Bruce. > > ------------------------------------------------------- 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