how to set global PATH on OS X?
Posted
by
lajos
on Server Fault
See other posts from Server Fault
or by lajos
Published on 2009-05-31T19:08:20Z
Indexed on
2012/11/18
11:10 UTC
Read the original article
Hit count: 237
I'd like to append to the global PATH variable on OS X so that all user shells and GUI applications get the same PATH environment.
I know I can append to the path in shell startup scripts, but those settings are not inherited by GUI applications.
The only way I found so far is to redefine the PATH environment variable in /etc/launchd.conf:
setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/my/path
I coulnd't figure out a way to actually append to PATH in launchd.conf.
I'm a bit worried about this method, but so far this is the only thing that works. Does anyone know of a better way?
© Server Fault or respective owner