X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:to:cc:subject; q=dns; s= default; b=y0hFPUB3jOfv75DFWTqih/HWX13qCIqLw0xXxX7kompJy0uLwDgg5 o4UElir9IU0m7bbYPjCVnrrfDlnaBuyEyCF03oG8qZE95i/P3qtSe/cL8XcDYTny bxCdBQ77MygVpBkwpaCVq91TNNgWFyAbt2zffuDY2LgaGFhksTuhaY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:to:cc:subject; s=default; bh=v4t/8ZNzHeduZ1EwBWK7X1nBrgk=; b=QrG2ot0yr8IGw5n2nlg8+fl6d5Ma 9dV6ec0JvRwE1QnqM1T5E7CoTOoCmC7y0ijQWrOKimYSxNH65IJObEzs571QQeyF SDS11QUSWqdbqozjQ/syyYk7aaA/m0vxX0OA6rKAm0aNj9SMPlBtBqV85IvA0J4c rz78PEk2cMb3nec= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.1 Message-ID: <20130803175444.3628@binki> Date: Sat, 03 Aug 2013 17:54:44 +0900 From: wynfield AT gmail DOT com To: cc: Subject: checkX problem or misunderstanding 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