On Mountain Lion all the
Apple's Developer Forums say:
So I directly edited the app's
and added a new key/dict pair called:
now the App (in my case SourceTree) uses the given path and works with git 1.9.3 :-)
PS: Of course you have to adjust the Path entry to your specific path needs.
The solution uses the functionality of
One important thing is the RunAtLoad key so that the launch agent is executed at the earliest time possible.
The real work is done in the shell script /Users/Shared/conflaunchd.sh, which reads ~/.conf.launchd and feeds it to
Notice the call of
It should be mentioned that Apple intended a somewhat similar approach by putting stuff in ∼/launchd.conf, but it is currently unsupported as to this date and OS (see the manpage of
The answer provided by @percival-ulysses works for me on 10.9 Mavericks with the following small change: edit /Users/Shared/conflaunchd.sh script right before
to restart the Dock and the menubar. After this the applications started from the Dock or from Spotlight will inherit the correct PATH. If you use Finder to start the PATH-critical applications, then
to set the PATH for the Terminal, this way the PATH is controlled from the same location, the ~/.conf.launchd file.
Another option is to use
You can apply changes to
The answer provided by @flori works for me on Maverick provided I run the following commands in Terminal after changing the plist file