delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/19/18:23:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 28B1B3858412
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=astrofoto.org
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=astrofoto.org
X-Authority-Reason: nr=8
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=astrofoto.org; s=default; h=Content-Transfer-Encoding:Content-Type:
In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:
List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=+60drXuTGaO9CH+e9FPLsaZ6AfL1tXRXVuXQBN0VRhg=; b=rVz1u1CXrDzuui0fC8C/KHMddC
YwWjyX2zvGPJXDmQ+gsVUvIMmK8Bistach2TK+mNFn25FI3S2836Zw3vWiHW5ZeqXPQaTTlsktbMw
9WYpsmKco+sgBJW+jDvhKWghtOcXVzZ3tHSJY3dk8j64yfAHe7lKYn9Bkrb0YgZL3rqo=;
Subject: Re: Cygwin/X on Windows 10 won't launch apps from .XWinrc menus
To: moss AT cs DOT umass DOT edu, cygwin AT cygwin DOT com
References: <beb86b97-7c86-3685-dd09-e2f98e5070d9 AT astrofoto DOT org>
<53bed941-9f6f-9b51-a07e-f3687f4414b0 AT astrofoto DOT org>
<baf4e2f0-479f-f3bd-8cfb-29bebe787b59 AT cs DOT umass DOT edu>
From: Roland Roberts <roland AT astrofoto DOT org>
Organization: not very
Message-ID: <d3003375-d177-0964-8b6b-cd0f378bf6e3@astrofoto.org>
Date: Thu, 19 Aug 2021 18:22:36 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <baf4e2f0-479f-f3bd-8cfb-29bebe787b59@cs.umass.edu>
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - box2383.bluehost.com
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - astrofoto.org
X-BWhitelist: no
X-Source-IP: 104.162.85.197
X-Source-L: No
X-Exim-ID: 1mGqQo-0024GC-OA
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: cpe-104-162-85-197.nyc.res.rr.com ([192.168.3.141])
[104.162.85.197]:52009
X-Source-Auth: roland AT astrofoto DOT org
X-Email-Count: 12
X-Source-Cap: YXN0cm9mb3Q7YXN0cm9mb3Q7Ym94MjM4My5ibHVlaG9zdC5jb20=
X-Local-Domain: yes
X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_SOFTFAIL,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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>
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>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 17JMNV2b013624

On 8/19/2021 2:41 PM, Eliot Moss wrote:
> On 8/18/2021 7:19 PM, Roland Roberts wrote:
>> On 8/10/2021 8:58 AM, Roland Roberts wrote:
>>> I have a new, company-supplied Windows 10 laptop, using Cygwin to do 
>>> development. I’m having a problem getting XWin to launch apps. XWin 
>>> appears to be mostly working normally, meaning if I launch a Cygwin 
>>> mintty instance, I can manually set DISPLAY=:0.0 and start up X 
>>> application from the shell prompt. But trying to launch from my 
>>> .XWinrc, the application never displays and I can’t find a useful 
>>> error log to track down the issue. I’m pretty sure it’s some 
>>> permission someplace my account doesn’t have (and I can probably get 
>>> IT to change that if I can just identify what it is).
>>>
>>> [...]
>>>     [  1490.390] executing '/bin/mintty', pid 772
>>>     [  1902.312] executing '/bin/mintty', pid 1200
>>>
>>> You can see the last two things that were launched. And here’s the 
>>> process list
>>>
>>>   [...processes show XWin starting, never spawns child mintty...]
>>>
>>> Any suggestions on where to poke to diagnose this? My home Windows 
>>> 10 machine has no problem at all. Oh, and cygcheck report version 
>>> 3.1.4. Yes, that’s a little old, but we are stuck there until we can 
>>> work out an issue with our build environment and the change for 
>>> 3.1.5+ in how symlinks are handled.
>>>
>> So, no suggestions :-(
>>
>> I'm looking for anything at all that I could put into my .XWinrc that 
>> might produce some diagnostic output short of running XWin under a 
>> debugger. I'm completely guessing that it's a permission thing.
>>
>> As I mentioned, I *can* launch X applications from a Cygwin mintty 
>> shell console after setting DISPLAY, including being able to launch 
>> things like Emacs, so whatever is stopping these from displaying, 
>> it's only affecting things launched from my .XWinrc.
>
> A wondering:
>
> - How are the programs mentioned in the .XWinrrc file?


I've tried both with "mintty" and with "/bin/mintty". Makes no visible 
difference. And yes, that path is correct. /bin/emacs -> 
/etc/alternatives/emacs -> /usr/bin/emacs-X11


> - Is /usr/bin on the PATH when XWin is started?

Yes.

> I recall having issues around the PATH at some point ...

I almost certainly did, too, which is why my launch shortcut looks like this

C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec 
/usr/bin/startxwin"

That gives me a login shell which means my .bashrc gets executed. That's 
a bit heavy and has it's own potential pitfalls. But... I have moved 
aside my .bashrc and it makes no difference.

In fact, I cna run startxwin from a mintty/bash shell and it works 
flawlessly. The above Windows 10 launch shortcut is what I'm using on 
both my work machine (where nothing will launch) and my home machine 
(where it works just fine)

My problem sounds a lot like the Cygwin/X FAQ 
https://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-startxwin-no-windows

Except that starting it from a mintty/bash windows works so that sheds 
no light on the failure :-(

roland


-- 
Roland Roberts, PhD
Brooklyn, NY USA
https://astrofoto.org


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