http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5333
dhogan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from dhogan <[email protected]> 2012-06-19 12:23:55 PDT --- Jianwu, > One way work around is to set environment variables at ~/.MacOSX/environment.plist file. It works for Kepler 2.3. > ... > I tried to edit /Applications/Kepler-2.3/Kepler.app/Contents/Info.plist to add environment variables there. Ideally, it should work and is only applicable for kepler.app. But Kepler cannot get them via getenv function. Not sure why. Did you add the environment variables under the LSEnvironment key in Kepler's Info.plist? ~/.MacOSX/environment.plist assumes LSEnvironment, but you have to explicitly declare it for an application's Info.plist. https://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html If this works in ~/.MacOSX/environment.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>ENV_VAR</key> <string>value</string> <key>ENV_VAR2</key> <string>value2</string> </dict> </plist> then it should probably look like this in Kepler's Info.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> ... other keys <key>LSEnvironment</key> <dict> <key>ENV_VAR</key> <string>value</string> <key>ENV_VAR2</key> <string>value2</string> </dict> </dict> </plist> -- Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. _______________________________________________ Kepler-dev mailing list [email protected] http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
