On 16 déc. 2003, at 13:49, Steffen Lund Hokland wrote:
[]
However X11 still doesn't read .profile.
[]

This enables me to run fink and tex stuff and produces the same output of
echo $PATH
in both X11.app and Terminal.app.

I think you should *not* try to play around with your shell startup scripts (although it may be too late for this advice now). You should start by trying to ask the right question. You keep comparing X11.app and Terminal.app. This is comparing not apples and oranges but single apples and whole orange trees.


X11.app is the X server, that is basically the whole X windowing system. What you are (probably) talking about is X11's equivalent of Terminal.app, namely xterm. xterm is one of many other possible applications running under X11. X11.app just happens to open one naked unconfigured xterm window by default when it is started and no ~/.xinitrc file is found. This is an unfortunate default configuration, IMHO, exactly because of reactions like yours. It is also an unfortunate decision by Apple to call this xterm "Terminal".

The better default behavior of X11.app would be to do nothing, just to start the X server and then stay in the background (and this is what happens if you have a ~/.xinitrc file). The user can then always open an xterm or any other X11 application. In this case, one has a better control of which of the hundreds of possible startup parameters of xterm are set. In particular, xterm should run a login shell, which would make your problem disappear.

What you can do is, for exmple:

1. Create a ~/.xinitrc file containing three lines like

  source /sw/bin/init.sh
  xterm -ls -sb -sl 2000 -rightbar -fn 6x13 &
  exec quartz-wm

or 2. Create a ~/.xinitrc file like in 1., but without the second line. Forget about xterm and use Terminal.app windows instead. If you export DISPLAY=:0 you can start any X11 program from the command line in your Terminal.app window, and you have a much better environment than in xterm. You can even start an xterm from the command line if you need one, and it will inherit your PATH variable from your Terminal.app environment.

--
Martin





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to