You were close with /etc/profile, and environment.plist will _nearly_ work, but the parent of all processes on Mac OS X is launchd, not WindowServer. So the file you want to make a truly global (system-wide) change is /etc/launchd.conf.
Have a look at http://www.digitaledgesw.com/node/31 if you're interested in my full writeup on this.
/etc/launchd.conf
You were close with /etc/profile, and environment.plist will _nearly_ work, but the parent of all processes on Mac OS X is launchd, not WindowServer. So the file you want to make a truly global (system-wide) change is /etc/launchd.conf.
Have a look at http://www.digitaledgesw.com/node/31 if you're interested in my full writeup on this.