...
Warning | ||
---|---|---|
| ||
We need to make sure launchd uses UTF-8 locale, otherwise there will be encoding issues in case browser. |
Configure UTF-8 locale
Main file with environment variables definition:
...
Code Block | ||
---|---|---|
| ||
$ launchctl load -w /Library/LaunchAgents/environment.user.plist $ sudo launchctl load -w /Library/LaunchDaemons/environment.plist |
What we get:
- The only place to declare system environment variables: /etc/environment
- Instant auto-update of environment variables after modification of /etc/environment file - just relaunch your application
Issues / problems:
In order your env variables were correctly taken by applications after system reboot you will need:
...
This happens due to Apple denies explicit ordering of loaded services, so env variables are registered in parallel with processing of the "reopen queue".
Configure Launchd script
You can download the scripts mentioned in the attachments section and modify paths etc accordingly.
Create a wrapper script named "casebrowser-launchd.sh" and put it in home bin folder (~/bin).
...