On 2000.06.19, in <[EMAIL PROTECTED]>,
        "clemensF" <[EMAIL PROTECTED]> wrote:
> > Mrinal Kalakrishnan:
> 
> > No it's different. If you're in a console while X is running, the
> > RunningX test will fail, because it actually tries to open the
> > display. Whereas the $DISPLAY variable still exists, so "test -n
> 
> isn't there some other way (a unix way) for trying to open the x- display?
> is one of the standard /dev/* devices associated with an x- display?

Generally, it's a unix-domain socket (AF_UNIX), usually
/tmp/.X11-unix/X{displaynumber}.  XOpenDisplay() is the standard way to
open it.  This RunningX program is no more than a wrapper for
XOpenDisplay, so it's about as canonical as you get.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to