Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Associate X11 applications with filename extensions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Associate X11 applications with filename extensions
Authored by: bdm on May 17, '03 09:25:05PM

Some people are reporting problems with sequences like this
in /bin/sh (and the same will be true for /bin/bash):

DISPLAY=:0.0
gv file

The explanation is that DISPLAY is only defined for the sh
process and is not passed to the gv process. This has been
a normal feature of the Bourne shell and its relatives since
the age of the dinosaurs. You have to explicitly tell the shell
to pass the variable to subprocesses. The traditional way is

DISPLAY=:0.0
export DISPLAY

In more recent shells including sh and bash on MacOSX, you
can do it in one step like this:

export DISPLAY=:0.0

None of these comments apply to shells like tcsh.

Brendan.



[ Reply to This | # ]