[X-Unix] path for terminal.app and x11

William H. Magill magill at mcgillsociety.org
Sun May 15 18:13:15 PDT 2005


On 14 May, 2005, at 00:15, sham khalil wrote:
> i have edited .profile file to include /opt/local/ in the $PATH
> PATH=" /bin:/sbin:/usr/bin:/usr/sbin:/opt/local/bin:/opt/local/sbin"
>
> but on X11  $PATH doesn't have /opt/local
> PATH="/usr/bin:/bin:/usr/sbin:/sbin:/Users/shamkhalil:/usr/X11R6/bin"
>
> how do i change $PATH on X11?

There are multiple answers to that question.

Anything which operates from the AQUA GUI (the login window) requires  
the path (and other similar stuff) be entered in the ~/.MacOSX/ 
environment.plist file.

Anything which operates without the AQUA GUI requires the path  
information in one of the initialization files for your particular  
shell.

The .MacOSX/environment.plist is documented on the developer site:
(you can find related things by searching for "environment.plist")

Environment Variables
http://developer.apple.com/qa/qa2001/qa1255.html

setting environment variables for user processes
http://developer.apple.com/qa/qa2001/qa1067.html

I have something like this in my file:

<dict>
         <key>LC_ALL</key>
         <string>C</string>
         <key>LANG</key>
         <string>ENGLISH</string>
         <key>PATH</key>       <string>/bin:/sbin:/usr/bin:/usr/local/ 
bin:/usr/sbin:/usr/local1/bin:/opt/local/bin</string>
         <key>LD_LIBRARY_PATH</key>
         <string>/usr/local1/lib:/usr/local1/opt/local/lib</string>
         <key>DISPLAY</key>
         <string>:0</string>
</dict>



T.T.F.N.
William H. Magill
# Beige G3 [Rev A motherboard - 300 MHz 768 Meg] OS X 10.2.8
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.3.8
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a
# XP1000  [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000  [Alpha 21264-A (EV 6.7) - 384 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at acm.org
magill at mac.com
whmagill at gmail.com




More information about the X-Unix mailing list