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>
Some people are still using OS X 10.7 Lion and OS X 10.8 Mountain Lion, and until recently, you had to pay Apple $19.99 to get download codes for those OSes. But there's good news: Apple is now offering Lion and Mountain Lion for free for anyone who wants them.
Removing environment variable bash_profile , refresh the system and then run printenv , it will still show the removed environment variable. The solution is to remove them from bash_profile and unset them from command line.
Launch Terminal or a shell. Enter printenv. A list of all the environment variables that are set is displayed in the Terminal or shell window.
I ran into the same issue today. I called Apple Support and after being escalated to a Senior Advisor, then to her supervisor, I was told that they no longer support environment.plist and that there is no officially-supported method for defining environment variables in Mac OS 10.7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With