One caution for you: setting the DISPLAY variable when you aren't running X11 can confuse some applications. Emacs with X11 support (e.g. the Fink emacs* or xemacs packages) comes to mind: if DISPLAY is undefined you can use (x)emacs in a Terminal.app window, but with DISPLAY set it tries to open a separate X11 window.

However, you can turn DISPLAY back off in such a case with "export DISPLAY=".
--
Alexander Hansen
Levitated Dipole Experiment
http://www.psfc.mit.edu/LDX


On Dec 16, 2003, at 9:43 AM, Steffen Lund Hokland wrote:

Dear all,

Thanks Eric, Alexander and especially Martin for putting me straight :-)

On 16/12-2003, at 14.48, Martin Costabel wrote:

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.

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.
I have removed the bogus ~/.bashrc file, and created a .xinitrc as prescribed by Martin, containing the lines:
source /sw/bin/init.sh
exec quarz-wm
and have subsequently been able to launch X-apps from Terminal.app. I've added the line
export DISPLAY=:0
to my ~/.profile, and it works great.


Thanks again,

Steffen

-- Martin




There was a young lady called Bright
who could travel much faster than light.
She departed one day
in a relative way
and returned on the previous night

___________________________________________
Steffen Lund Hokland, Ms. Sc.
Research Assistant

The MR-Research Centre
Inst. of Exp. Clinical Research
University of Aarhus
Skejby University Hospital
DK-8200 Aarhus
Denmark

Phone Office    :       +45 89495264
Phone Home      :       +45 86166608
Phone Mobile    :       +45 61307461

e-mail          :       [EMAIL PROTECTED]
___________________________________________



-------------------------------------------------------
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



------------------------------------------------------- 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