Macos – Change Path for OS X

computing-environmentmacos

I am not asking how to change the path for mac OS X terminal windows.

I am having this problem, and I’d like to be able to launch by clicking. It does work if I open it in a terminal window (since the path is set correctly).

I have tried adding a path variable to ~/.MacOSX/environment.plist but to no avail.

How can I change the path for the current user in Mac OS X?

Best Answer

Add a file with your desired path in it (e.g. /opt/local/bin) to the directory /etc/paths.d. This method is how TeXLive does it. You can also add your manpath to /etc/manpaths.d this way.

Related Question