Re: default PATH in X11
Re: default PATH in X11
- Subject: Re: default PATH in X11
- From: Ian Kaufman <email@hidden>
- Date: Thu, 29 Nov 2007 15:57:32 -0800
Thanks Jeremy.
What's weird is, on initial launch from /A/U/X11.app, the PATH is set
to /usr/bin:/bin:/usr/sbin:/sbin -
if it truly sourced /etc/paths, I would expect /usr/local/bin to be
included as well. After initial
launch, if I open a second xterm (via cmd-N or from the Applications
menu), the path remains
the same, but appends /usr/X11/bin (still no /usr/local/bin) - so it
appears to check /etc/paths.d
(eventually). From the initial xterm, launching a new xterm via the
command line (/usr/X11/bin/xterm)
still retains the original path (as expected due to inheritance).
So, somewhere, the paths are not being sourced on initial launch ...
Ian
On Nov 29, 2007, at 3:28 PM, Jeremy Huddleston wrote:
X doesn't have a path, per se. If you start an xterm, the path is
inherited from the environment that launched it (like Terminal.app)
assuming PATH was exported. This in turn was set via path_helper
(referencing /etc/paths). If you use /A/U/11.app to launch the
xterm, it starts a bash login shell which uses /etc/profile to run
path_helper and any user preferences in ~/.login (or
~/.bash_login). xterm is started from this login shell inheriting
its $PATH. xterm then starts a non-login shell which uses your
~/.bashrc
Hope that helps,
Jeremy
On Nov 29, 2007, at 15:12, Ian Kaufman wrote:
Hey all,
Where does X11 set/get its default PATH from? It currently appears
to inherit a default PATH from the actual build (via config) and does
not seem to reference /etc/paths nor /etc/paths.d .
Thanks,
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden