[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: check if X is running?



Hmm.  This sounds a lot like the Matlab Engineering tool I just learned
how to use last Term.  It's mainly console based, but can display graphs
and plots and the like.  If the user doesn't have the DISPLAY variable set
right, it just tries to send the graphics off to a null server and doens't
even give an error message.  If your program doesn't require X11 to run
(as in, there are some things in there that never require X), you could
consider letting the user run the program even if $DISPLAY isn't set, and
maybe give a warning that it hasn't, or something like that.

Do Svidonia,

Martin Held
heldm@ucs.orst.edu
-------------------
The way to love anything is to realize that it might be lost.


On Sun, 24 Jan 1999, Hamish Moffatt wrote:

> That's an idea. The same binary does text and graphics just fine;
> it's mostly text oriented but can display some graphics too. However,
> since it's linked against X, the package depends on the X libraries.
> 
> Even with the X version installed, it runs fine in text mode, so I
> still need the check for X11 :-)


Reply to: