public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* checkX problem or misunderstanding
@ 2013-08-03  8:54 wynfield
  2013-08-05  1:06 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 9+ messages in thread
From: wynfield @ 2013-08-03  8:54 UTC (permalink / raw)
  To: cygwin


Re: checkX

  $ checkX --version
    run2 0.4.2

checkX doesn't work as I understand the description below:

"DESCRIPTION
       Determines  if  X is installed, Xserver is running on specified DISPLAY
       and will accept clients. Returns 0 if yes, nonzero otherwise"


Environment / Procedure to duplicate the error:

 - I have an X11 server running, started in pty0, where I will test checkX 

 - In this pty0, I start an X11 server, which from the xinitrc starts up another mintty
    terminal, pty1 with Display environment variable set to :0

 - Testing checkX in pty1 (which has DISPLAY set) returns a 0 or successful result.
   checkX :0  --> returns 0
   
 - Moving back to pty0 and running the same command with the same argument gives:
   checkX :0  --> return 1 and error condition or no server available.


However, if I simply manually set DISPLAY=:0 in pty0   X11 clients will run.

-  export DISPLAY=127.0.0.1:0
-  checkX :0  --> Nnw reports an o.k. this server is useable.


If one relied on checkX the runing server would be missed.  It is doing nothing that a check if DISPLAY var is set or not andn then possible testing it.  It should has used the value :0 I sent it and do some X11 stuff I am not aware of.


I intented on interating through files in /tmp/.X11-unix/* looking for an active X11 server, but checkX doesn't seem to fit the bill.

Do I have to just manually set DISPLAY and try to run a program that relies on it, since checkX doesn't work by telling me a server can be use, when it can be.



------------

Cheers

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-06  0:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-03  8:54 checkX problem or misunderstanding wynfield
2013-08-05  1:06 ` Larry Hall (Cygwin)
2013-08-05  1:50   ` wynfield
2013-08-05  2:25     ` Larry Hall (Cygwin)
2013-08-05  3:11       ` Charles Wilson
2013-08-05  3:37         ` Christopher Faylor
2013-08-05  8:14           ` Corinna Vinschen
2013-08-06  0:27             ` Christopher Faylor
2013-08-05  5:01         ` d.henman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).