@KevinH: That wont help, shell startup files are not sourced by launchd on macOS. So environment variables placed there are not available system-wide. Specifically not in programs started by launchd, which is what clicking ona program icon in macOS does. In typical Apple style, there is no reliable way to set environment variables systemwide. The truly annoying part is that even if you manage to get launchd to set an env var, it then wont be available while SSHing into the machine, so you have to set it both in launchd and shell startup scripts or sshd config files.
@TortoiseAvenger: You can try creating /etc/launchd.conf instead. Though I dont know if that still works in modern version of macOS since Apple breaks things with pretty much every macOS release.
|