delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/23/16:16:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FAC43853D30
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1692821790;
bh=KMOrgYGR1u9yldidrosUJXltiMj8WI02wGII8Qbp6MA=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=uk5JdaryIC+TM9f5l9/2nQ49TDW6hYuktk49g6opCurLokxjARMDh60iQDkB1hGFu
qStxhd78ytEYwh1l/Kf20T4oE/VNGa5CbUc8Hg8np/MPcSNwno00hbYkGYJdpQ7arx
Q79PN1nniBj/Lgn3soqHqsX8GDs8yih69r/syK5g=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C022385735A
X-SNCR-Rigid: 64D171FB01C24DA5
X-Originating-IP: [81.158.20.254]
X-OWM-Source-IP: 81.158.20.254 (GB)
X-OWM-Env-Sender: jonturney AT btinternet DOT com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedviedruddvgedgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepheduueevueejueejgeeufeehtddtkeevtdduieelfeetteeffeejjedukeefgffgnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduheekrddvtddrvdehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtiegnpdhinhgvthepkedurdduheekrddvtddrvdehgedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehtshhtohhnvgesihgurgdrohhrghdprhgvvhfkrfephhhoshhtkeduqdduheekqddvtddqvdehgedrrhgrnhhgvgekuddqudehkedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhn
thgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhstheprhgvqdhprhguqdhrghhouhhtqddttdef
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <5a742821-4193-b54b-0467-2a3198b28304@dronecode.org.uk>
Date: Wed, 23 Aug 2023 21:15:47 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Subject: Re: How to use X-Server on VM with multiple client displays?
To: "Stone, Timothy M" <tstone AT ida DOT org>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <8f780780d6ff49dba93223855a778b6c AT ida DOT org>
In-Reply-To: <8f780780d6ff49dba93223855a778b6c@ida.org>
X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 22/08/2023 18:41, Stone, Timothy M via Cygwin wrote:
> 
> Hello,
> 
> I hope I'm using the right list!
> 
> I have an X application that uses the cygwin X Server XWin.  It works fine on Windows:
> 
>    *   When I launch the application, XWin launches, then the X app raises it's window.

This seems to be the root problem.

The application shouldn't really be starting the server.  If you start 
it separately then each instance of the application can connect to the 
same or different X server (as controlled by the DISPLAY value)

(But see below for ways that can be made to work)

> 
> When I install this application (and cygwin and XWin) on a virtual machine, I have a DISPLAY issue:
> 
>    *   If I log into the virtual machine from <machine1>, I can launch and run the app just fine.
>    *   However, if I then try to log into the virtual machine from another computer and launch the app...the app launches on the first machine's display...so I have 2 copies of it running on that display now.
>    *   Typically, I'd set DISPLAY=<machine1>:0.0 for the first machine, and DISPLAY=<machine2>:0.0 for the second machine
>       *   The problem is, the virtual machine is the only machine here, it only has 1 IP address
>       *   I don't know how to set multiple DISPLAY when using the same virtual machine with the same IP address from 2 different machines.

You need to give each instance of the X server a different "display number"

See https://x.cygwin.com/docs/faq/cygwin-x-faq.html#display-and-screen

>       *   I have tried setting the DISPLAY to the IP addresses of the client machines, this does not work (unable to open display).
>    *   I have also tried setting DISPLAY=localhost:0.0 for one machine and DISPLAY=localhost:0.1 for the other machine...this also does not work
>       *   XWin is unable to open display localhost:0.1

If you want to connect to separate server instances running on the same 
machine, you should use separate X display, not X screen numbers (e.g. 
localhost:0 and localhost:1)

> Any help greatly appreciated!
> 
> I'm sure it must be possible to launch the X app on the virtual machine from different clients and have the display on their respective displays?  I just can't see how to set the display.
  The exact configuration you are trying to use is still a little 
unclear to me after reading this.

You might want to look at the '-displayfd' and '-silent-dup-error' 
options to XWin. I suspect one of these might be part of the solution to 
your problem.

This page [1] in the documentation seems to be discussing a related 
problem, although maybe doesn't make it explicit.

[1] https://x.cygwin.com/docs/ug/using-terminal-server.html

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019