Is $HOME/.MacOSX/environment.plist
still recognized/used in OS X 10.9.2 for setting global environment variables?
Apple's official documentation does not say explicitly it's deprecated, AFACT:
Some discussion threads claims it is no longer supported since 10.8:
How to set system-wide environment variables on OS X Mavericks
https://stackoverflow.com/questions/603785/environment-variables-in-mac-os-x/4567308#4567308
What to believe?
My experiments seem to indicate that it is not supported in 10.9.2, but I'm not sure, as I'm not familiar with .plist
files etc. I'm trying to set JAVA_HOME
permanently and globally for applications started by double clicking /Applications/XXX.app.
I have
$ more $HOME/.MacOSX/environment.plist
{
"JAVA_HOME" = "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home";
}
which is edited by open $HOME/.MacOSX/environment.plist
and following the GUI.