From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.143.38]) by sourceware.org (Postfix) with ESMTPS id 28B1B3858412 for ; Thu, 19 Aug 2021 22:22:40 +0000 (GMT) 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 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 88F8262C17 for ; Thu, 19 Aug 2021 17:22:39 -0500 (CDT) Received: from box2383.bluehost.com ([50.87.216.226]) by cmsmtp with SMTP id GqQpmo55VMGeEGqQpmoYmQ; Thu, 19 Aug 2021 17:22:39 -0500 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=; Received: from cpe-104-162-85-197.nyc.res.rr.com ([104.162.85.197]:52009 helo=[192.168.3.141]) by box2383.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mGqQo-0024GC-OA; Thu, 19 Aug 2021 16:22:38 -0600 Subject: Re: Cygwin/X on Windows 10 won't launch apps from .XWinrc menus To: moss@cs.umass.edu, cygwin@cygwin.com References: <53bed941-9f6f-9b51-a07e-f3687f4414b0@astrofoto.org> From: Roland Roberts Organization: not very Message-ID: 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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@astrofoto.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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2021 22:22:50 -0000 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