Mac OSX Mountain Lion 的全局环境变量, For all GUI apps and Spotlight

以前osx的全局变量可以通过~/.MacOSX/envrironment.plist文件来设置,现在Mountain lion后就不行了。现在的文件换成/etc/launchd.conf 可以使用一下方法来设置: 1) Open a terminal prompt 2) Type sudo vi /etc/launchd.conf (note: this file might not yet exist) 3) Put contents like the following into the file # Set environment variables here so they are available globally to all apps # (and Terminal), including those launched via Spotlight. # # After editing this file run… Continue reading Mac OSX Mountain Lion 的全局环境变量, For all GUI apps and Spotlight