Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS X Lion no longer recognizes environment.plist?

Tags:

macos

osx-lion

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> 
like image 414
Michael Irwin Avatar asked Jul 21 '11 01:07

Michael Irwin


People also ask

Can I still use Mac OS X Lion?

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.

How do you Unexport an environment variable on a Mac?

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.

How do I show environment variables in OSX?

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.


1 Answers

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.

like image 178
sworisbreathing Avatar answered Sep 17 '22 14:09

sworisbreathing