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 DCFD1385840D 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=Svs9dstN5ES6JO42GmP2BuO2xYK40bbHt2EpJivoT+U=; b=sDDsfYbN5S93ncel5D7o/HAYgq 9iF6hoPSdkDo9/rZIb929I3Ir2jdHKhC7zn+/lmmZadFSpVuE/XfTcQshPwcgXLg+5csYCcINerN2 4RG2ESMOTTqKx8kH3V31EOXZvfuRNDt09AHj2pumzoGo18NBgpGbjf4vwlwh9c3dOF6A=; Subject: Re: Cygwin/X on Windows 10 won't launch apps from .XWinrc menus To: cygwin AT cygwin DOT com References: From: Roland Roberts Organization: not very Message-ID: <53bed941-9f6f-9b51-a07e-f3687f4414b0@astrofoto.org> Date: Wed, 18 Aug 2021 19:19:23 -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-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: 1mGUqD-000TxO-N6 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]:55129 X-Source-Auth: roland AT astrofoto DOT org X-Email-Count: 1 X-Source-Cap: YXN0cm9mb3Q7YXN0cm9mb3Q7Ym94MjM4My5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, BODY_8BITS, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 17INKI4x022663 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 > >     29267 rrobert1> ps -ef >          UID     PID    PPID  TTY        STIME COMMAND >     rrobert1     610       1 ?        08:31:58 /usr/bin/mintty >     rrobert1     471       1 ?        08:31:46 /usr/bin/gpg-agent >     rrobert1     772     605 ?        08:32:24 /usr/bin/XWin >     rrobert1    1205     611 pty0     08:39:31 /usr/bin/ps >     rrobert1     403       1 cons0    08:31:42 /usr/bin/sh >     rrobert1     442       1 ?        08:31:44 /usr/bin/ssh-agent >     rrobert1     611     610 pty0     08:31:58 /usr/bin/bash >     rrobert1     604     403 cons0    08:31:49 /usr/bin/xinit >     rrobert1    1200     605 ?        08:39:16 /usr/bin/XWin >     rrobert1     605     604 cons0    08:31:49 /usr/bin/XWin >     rrobert1     609     604 ?        08:31:50 /usr/bin/sh > > 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. 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