Re: [Xquartz-dev] MacPorts XQuartz 2.3.2 (xorg-server 1.4.2-apple32) has problems with $PATH
Am 16.02.2009 um 16:07 schrieb Jeremy Huddleston:
X11.app inherits its path from your default shell.
This cannot be true. When I try the same as /Applications/MacPorts/ X11.app/Contents/MacOS/X11 does and invoke exec -l /bin/tcsh -c 'echo $path' in bash instead of exec -l /bin/tcsh -c 'exec $argv:q' /Applications/MacPorts/X11.app/ Contents/MacOS/X11.bin I get: /Users/pete/bin /sw/lib/freetype219/bin /sw/lib/fontconfig2/bin /usr/ local/bin /usr/local/ActivePerl-5.8/bin /usr/local/texlive/2008/bin/ universal-darwin /usr/bin /bin /usr/X11/bin /sw/bin /sw/lib/coreutils/ bin /Developer/Tools /Users/pete/bin/FDK/Tools/osx This is not the same that is seen by GNU Emacs or inside the ~/.xinitrc script. It is the path that I set. -- Greetings Pete Genius may have its limitations, but stupidity is not thus handicapped. – Elbert Hubbard
Peter Dyballa wrote:
Am 16.02.2009 um 16:07 schrieb Jeremy Huddleston:
X11.app inherits its path from your default shell.
This cannot be true.
It is true, but you are not looking at X11.app's environment if you are in ~/.xinitrc. In ~/.xinitrc (or in the scripts inside ~/.xinitrc.d/, which is the currently recommended replacement for ~/.xinitrc), you get an environment inherited directly from /usr/X11/bin/startx as started by launchd. This is a minimalist environment that does not take into account *any* shell startup scripts, and not even ~/.MacOSX/environment.plist. If you want an environment in ~/.xinitrc, you have to create it yourself. -- Martin
participants (2)
-
Martin Costabel
-
Peter Dyballa