Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Copy variables from command line to GUI environments' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Copy variables from command line to GUI environments
Authored by: hopthrisC on Jul 23, '04 11:00:18AM
For the daring:

$ cd .MacOSX
$ mv environment.plist ../Library/Preferences/
$ ln -s ../Library/Preferences/environment.plist .

now you can use

$ defaults write environment VARIABLE "content"
$ defaults delete environment VARIABLE "content"

to set the content of VARIABLE to "content".

Note: This will not work if there's anything that writes to your environment.plist during login (or even later), like sshLogin.

[ Reply to This | # ]