Am 12.01.2011 um 13:00 schrieb Tim Visher:
Hi Phillip,
Hello,
On Tue, Jan 11, 2011 at 5:47 PM, heapifyman wrote:I had specified a few environment variables in my~/.MacOXS/environment.plist and also adapted my PATH variable there toappend my defined env variables.This does somehow not work well with the "export PATH=..." that macportsadds to the ~/.profile file.I think I read somewhere that the environment.plist should be the place todefine these kinds of things on Mac OS X. I know I can add the things that macporst adds to the PATH in myenvironment.plist and comment out the "export PATH ..." in .profile but Iguess this will be added again once macports updates itself? Is there a way to make these two work together?I think you're going to need to be a little more specific as far as the exact problems you're seeing. I also define my environment variables in `environment.plist` (to support an Emacs installation) and I haven't seen any issues as far as my PATH is concerned. You're only half right. If programs other than Terminal.app (and apps started from there) need to see the environment variables you're setting, then you need to define them in `environment.plist`. However, if Terminal.app is all that needs to see it, then you're perfectly fine setting it in your `.profile`. To preemptively answer the 'problem' you might be seeing, if you're noticing that your `PATH` contains duplicate entries because you've set them in `environment.plist` and in `~/.profile`, you've got nothing to worry about. I know it's not very DRY but `bash` happily lets you add duplicates to `PATH` and deals with it quite efficiently. If that's the problem you're noticing I suggest you stop worrying and learn to love them bomb.
sorry about this. I just found out that my problem was that I started the Terminal.app via Spotlight and then apparently does not pick up environment.plist (http://www.digitaledgesw.com/node/31), which is pretty lame.
So problem solved. Thank you. Best regards, Philip
-- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail
PGP.sig
Description: Signierter Teil der Nachricht
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
