osx - Mac Set variable at boot time -
i trying set environment variable on mac @ boot time. want variable exist if nobody logged in. because may use ard launch script remotely (as root) , need query these variables.
i can create plist in launchdaemons folder perform launchctl command, doesn't seem set variable script launched remotely root (whether logged in or not). however, if user logs in, work user.
launchctl setenv envname envvalue information have found on (such https://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks) suggests can in user context, on login.
is aware of way variable can set exists when machine booted?
i have found details out of date 10.10 (such using .profile or bashrc) may have helped (but can't sure).
Comments
Post a Comment