osx - How to set environment variables for apps on El Capitan -
i'm trying set environment variables programs launch (e.g. eclipse) can access. tried plist, doesn't work, not because of plist per se, launchctl setenv isn't doing expect.
example:
$ /bin/launchctl setenv aaa ccc $ echo $aaa $
where going wrong?
for reference, plist file contents this:
<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>label</key> <string>setenv.flex_home</string> <key>programarguments</key> <array> <string>/bin/launchctl</string> <string>setenv</string> <string>flex_home</string> <string>/users/me/dev/apps/flex</string> </array> <key>runatload</key> <true/> <key>serviceipc</key> <false/> </dict> </plist>
Comments
Post a Comment