Exposing some environment variables to OS X apps

*Note:* This requires that a terminal is opened first at any time so the settings are activated for launchctl. The alternative would be to use launchd.conf which does not allow determining the value of vars dynamically though (see JAVA_HOME).