Mac OS X Lion no longer recognizes environment.plist?

Michael Irwin picture Michael Irwin · Jul 21, 2011 · Viewed 30.9k times · Source

Just installed Lion today and my PATH env variable is no longer being set by ~/.MacOSX/environment.plist. Did something change? Can't seem to find any info on that or how to fix. Any ideas?

Here's the contents of the PLIST:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PATH</key>
    <string>/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11/bin:/Users/mdi/bin</string>
</dict>
</plist>

Answer

LaC picture LaC · Jul 21, 2011

Use ~/.launchd.conf instead (see man launchctl).

See this answer for details.