0

I try to set a permanent environment variable in MacOS 10.9.5 editing the following file:

/etc/launchd.conf

Here is the file content:

setenv VAR1 "testwithoutspace"
setenv VAR2 "test with space"

After reboot, the VAR1 is set but not the VAR2. I can reproduce this problem by using the following command mentioned in the launchd.conf comment:

grep -E "^setenv" /etc/launchd.conf | xargs

If I perform the command directly it works:

launchctl setenv VAR2 "test with space"

What is happening?

Martin Delille
  • 11,360
  • 15
  • 65
  • 132

0 Answers0