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:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=SQhQZ4zGlKqPEIhKNd6KvTg4b04Vw5U3YL5hdCLy9FT IBR21Bsn8+sR13NNruWl8EXuKu17/6Hnt6Vy3mXOX+uMH0B7PBmABQ/a6/J4h3n5 PVMgyPnw+QXBxe7DykkaPH4km+t1wLMkEtbFHPQnsKK+CQ5fMFzGpasENyPmtF54 = 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:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=657R7MurG4GYqfrPcEfD4oVgq/8=; b=tQugWOE8Uv1xp5a6H xiQ+NneiXKKAnEUyIVUCsJMWNu+iCS1L1Ad/j7o+pg9Uwb112xMYTU6F5WvTjrxg R67Q+VJOtyLbmDAOzVd8LV3Nr+Gn1s3m3TXvSQdPukFQ9FdcRk8MRtSGaP7kleTp ju3BISQPnPReWHxDLvSeYLSoH0= 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=-0.9 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 Message-ID: <51FA642C.1090801@cwilson.fastmail.fm> Date: Thu, 01 Aug 2013 09:35:40 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: run2 operation References: <20130801214005 DOT 2284 AT binki> In-Reply-To: <20130801214005.2284@binki> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 8/1/2013 8:40 AM, wynfield AT gmail DOT com wrote: > Re: un2 0.4.2 > > $ checkX --verbose > > "checkX Info: Unspecified X display (check --display in xml > or in cmdline; also check $DISPLAY environment > variable)." > > But, Xwindows is running, and was started from this terminal sith > "startx &" > > Shouldn't it be detected and the DISPLAY valued returned so that I > could set the DISPLAY variable for this mintty windows as well? No, that's not what checkX is for. You have to tell IT where you think the X server is running, and it will tell you if it can contact a server there. So: $ checkX --display=127.0.0.1:0.0 [exits with status value 0 or 1] Really, checkX is just a testing tool, that shares/exercises a lot of the same under-the-hood code as run2. It's not really of that much use, except *perhaps* as below. > When I invoke run2 (from a shortcut with the example .xml file) it > also start a mintty terminal window, but I want it to start an > XWindow or at the least use the currntly running X server. Mintty is not an X program. I'm not sure what you are trying to accomplish, except perhaps to arrange that *within* the mintty/bash session, $DISPLAY is set correctly so that you can launch programs that DO need X successfully? > The running server is not detected to the xml's "GDI" section of the > xml is used. Right, if you don't tell it which display to contact, it doesn't guess. You don't really want your GnuCash session showing up on somebody else's XWindow display do you? > checkX is very good, but I wish it would detect a currently running X > server and report it'S DISPLAY value. And how do you suggest it do that? Poll every reachable machine on the local network using arp, extract the IP addrs, then ask each one if they have a display on :0, :1, .. :99, and repeat? > I have just started with run2, so I'm not privy to a lot of it and > not xml savy yet. > > Any advice would be greatly appreciated. Read /usr/share/doc/run2/* Something like this .sh script might do what you want...but you'd probably want to launch it using a run2.xml (or plain old run.exe). ============== snip =============== #!/bin/sh export DISPLAY=127.0.0.1:0.0 start_XWin() { # Cleanup from last run. rm -rf /tmp/.X11-unix XWin -multiwindow -clipboard -silent-dup-error 2>/dev/null & } /usr/bin/checkX || start_XWin while ! /usr/bin/checkX do ## printf "waiting for xserver to start\n" sleep 1 done sleep 1 /usr/bin/urxvt-X & ============== snip =============== But that really does nothing, that 'startxwin.exe' and ~/.startxwinrc already do better. -- Chuck -- 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