[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About PATH environment variable on OSX
From: |
Jan Djärv |
Subject: |
Re: About PATH environment variable on OSX |
Date: |
Fri, 12 Apr 2013 07:05:19 +0200 |
Hello.
The way to this on newer OSX is to create /etc/launchd.conf and put something
like:
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
in there. I have not tried this myself.
I will test it and fix the documentation.
Jan D.
7 apr 2013 kl. 20:19 skrev Darren Hoo <address@hidden>:
>
> In the Emacs info manual F.1.1 Grabbing environment variables
> it says and I quote:
>
> For the PATH and MANPATH variables, a system-wide method of setting
> PATH is recommended on Mac OS X 10.5 and later, using the `/etc/paths'
> files and the `/etc/paths.d' directory.
>
> It doesn't work for me. This is my /etc/paths file:
>
> $ cat /etc/paths
> /usr/bin
> /bin
> /usr/sbin
> /sbin
> /usr/local/bin
>
> but (getenv "PATH") gives "/usr/bin:/bin:/usr/sbin:/sbin"
> and I haven't used any (setenv "PATH" ...) in my init file.
>
> I can confirm that PATH settings in the /etc/paths and /etc/paths.d are
> never picked up by the programs launched from the Finder by writing a
> simple Cocoa App.
>
> I can not find any NS-specific code that read the /etc/paths file
> either.
>
> So I think the paragraph I quoted above in the manual is incorrect and
> should be removed.
>
Re: About PATH environment variable on OSX, Josh, 2013/04/13