delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/23/22:00:02

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8177385B513
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1677207552;
bh=/FZpeNL2o/BTGF7MlX5qbNAhVjG7snpFScFREDpmu9E=;
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=oDlvV2tcJTXpIlSu8Jw0M4jW1W7MV/NJuLWYXYcWPMXgLPmKbmk2o74XXaZpvfIka
36vPYeVPuDzV0zg6eMTEj/bqRzKBzKee/qXhl/zUe9Vd8fxBqLbzOoRgKjrDCxtRlC
7rk5GEWLSVXRpvghuGIyaaEbq5fYNO+tCgladQNM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22305385843D
Message-ID: <f8fc8d97-7b57-7012-e831-26b56239510a@cs.umass.edu>
Date: Fri, 24 Feb 2023 13:58:50 +1100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.2
Subject: Re: (No Subject)
To: chrstfer <chrstfer AT protonmail DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <7A07r2fCCPwKcS2yk7WekLqq88LeTT0or1g3cOwDu8k7PLtEkNNb6WBaUtMSvs3dZL9udR-_fhCu6lnEZx4hq_OVFpGcrjSSPzT2JaYIdSs=@protonmail.com>
In-Reply-To: <7A07r2fCCPwKcS2yk7WekLqq88LeTT0or1g3cOwDu8k7PLtEkNNb6WBaUtMSvs3dZL9udR-_fhCu6lnEZx4hq_OVFpGcrjSSPzT2JaYIdSs=@protonmail.com>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no 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-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: Eliot Moss via Cygwin <cygwin AT cygwin DOT com>
Reply-To: moss AT cs DOT umass DOT edu
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2/24/2023 1:51 PM, chrstfer via Cygwin wrote:
> Hi all,
> 
> First mail, so while I'm fairly sure it's on topic please forgive me if it isn't.
> 
> Has anyone tried to get a docker container with an X app in it to connect to the cygwin x server?
> 
> When I run startxwin after starting the wslg container the cygwin Xserver comes in at address (word?) :1 rather than :0, so the two servers can recognize each other (at least to some degree). I can run a cygwin X app in a cygwin console and get an X window, and I can run a wslg app in a wsl bash instance and get an X window, each on their respective servers. But when I set the env DISPLAY in one to the X of the other, it breaks.
> 
> This isn't just a stupid ask for a redundant use-case, either. The cygwin X server is vastly superior to the wslg one, at least insofar as integration with the windows 10 chrome; cygwin X windows no matter the library will snap like a regular windows window will. Anything coming out of wslg, at least when it comes to gtk3 (emacs-git) and QT4 (qutebrowser), have no native window decorations and don't snap. I've also been unable to find a way to run a docker container as a single X root window (ie to run a DE inside of a container) but I bet if I could connect to the cygwin X server that'd be fairly straightforward.
> 
> I'll be the first to admit I don't know too much about X so is what I'm asking even possible? (I do mainly use linux, but normally X is one of those things that i dont fiddle with much)
> 
> UItimately/mostly I'm just fed up of being stuck in Windows windowland at work and not having emacs-git*. At least thats how i landed on this topic, but it seems to me being able to run a docker container and have it hook into a cygwin X server that's already running would be a good feature generally. Especially if it would enable me to disable WSL again.
> 
> (*As an aside: while I have gotten it to compile, and it runs in the console, so many tests break that I'm afraid to even try compiling it for gtk3; so a docker container of debian stable seemed a logical next step and i half-expected it to just work, to be honest, given how seamless the rest of my cygwin experience has been recently, and I would put money on these two issues being on docker/docker-desktop/wsl, given how poor wslg's integration is despite being a microsoft project)

If it's of any help in understanding this, in wsl I set DISPLAY=:0
and can start X apps that connect to the Cygwin X server.  I wonder
if there are issues trying to run two X servers at the same time ...

Best - Eliot Moss

-- 
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