On Feb 23, 2004, at 1:17 AM, James Arwood wrote:
While I was trying to get X11.app to recognize the paths to my /sw directories, I used the linux command that I was used to:
export PATH=$PATH:/sw/bin
This worked out great and allowed term access to those binaries, but for that session only. Everytime I quit X11.app and restarted, the exported path was forgotten.
I tried this as user, sudo, su and su -, all with the same results. Not that this is something I'll need often but am I doomed to manually enter changes like this, and will I encounter other subtle diffs between Darwin/Unix from what I'm used to in linux?
The problem with this method is that, when you exit the shell, the environment is dropped...
Instead you can try :
- Manually add you path to a ~/.xinitrc (to build this you can duplicate /etc/X11/xinit/xinitrc).
I had problem with this solution because terminal sessions inside X11 did not get the path (???)
- "source /sw/bin/init.sh" in ~/.xinitrc (This is the suggested method from the fink site).
Same problem as above (??)
- Or hard code you path in a file in ~/.MacOSX/environment.plist.
This file is a property list build with "Property list editor" from the developer tools.
Apple documented this on a tech note : <http://developer.apple.com/qa/qa2001/qa1067.html>
and it needs a logout / login. This is the only (??) method i found which allowed me to define the
path for ALL applications (event cocoa apps - this one worked !!)
-- bruno
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
