On 04/23/99 Michael Sanders uttered the following other thing:
> On Fri, Apr 23, 1999 at 01:47:02PM -0400, David Shaw wrote:
> > On Fri, Apr 23, 1999 at 01:30:50PM -0400, kiss the sun and walk on air wrote:
> > > The documentation for MIME references a script called RunningX for use
> > > with the test parameter in the .mailcap file. Where may one find this?
> > 
> > http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c
> > 
> > I suppose you could just test for the presence of $DISPLAY and if it
> > exists, you are running X.  Does anyone know of any circumstances where
> > that could fail?
> > 
> It looks to me as though that's exactly what RunningX.c does.

RunningX actually opens a connection to the display at $DISPLAY.  Its
mostly sufficient, at least more so for me since I almost always set my
DISPLAY var.

Brandon
-- 
 Brandon Long          "Quantum Mechanics: The dreams stuff is made of"
 Fiction Networks                              -- Steven Wright
 [EMAIL PROTECTED]                http://www.fiction.net/blong/

Reply via email to