setting an environment variable globally and persistently

René J.V. Bertin rjvbertin at gmail.com
Sat Oct 10 02:40:22 PDT 2015


Hi,

Does MacPorts have a builtin mechanism to set an environment variable such that it is available to all users and all applications, regardless how they're started (shell or LaunchServices) and persists across reboots?

I see it's not impossible:

http://stackoverflow.com/a/26586170/1460868

Context: this could be an alternative (and potentially easier) way to control Qt5's QStandardPaths behaviour, but one that will of course drop the possibility to let "pure Qt" applications use "native" QSP locations and others (KF5...) XDG-based locations.

R.


More information about the macports-dev mailing list