• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: default PATH in X11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: default PATH in X11
      • From: Jeremy Huddleston <email@hidden>
References: 
 >default PATH in X11 (From: Ian Kaufman <email@hidden>)
 >Re: default PATH in X11 (From: Jeremy Huddleston <email@hidden>)

  • Prev by Date: Re: default PATH in X11
  • Next by Date: Re: default PATH in X11
  • Previous by thread: Re: default PATH in X11
  • Next by thread: Re: default PATH in X11
  • Index(es):
    • Date
    • Thread