From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id EA4A5385740A for ; Thu, 19 Aug 2021 18:41:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA4A5385740A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu Received: from [192.168.1.218] (cpe-108-183-173-145.maine.res.rr.com [108.183.173.145]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 4AD40401A573; Thu, 19 Aug 2021 14:41:58 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: Cygwin/X on Windows 10 won't launch apps from .XWinrc menus To: Roland Roberts , cygwin@cygwin.com References: <53bed941-9f6f-9b51-a07e-f3687f4414b0@astrofoto.org> From: Eliot Moss Message-ID: Date: Thu, 19 Aug 2021 14:41:58 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <53bed941-9f6f-9b51-a07e-f3687f4414b0@astrofoto.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, 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 18:42:00 -0000 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 >> >>     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. A wondering: - How are the programs mentioned in the .XWinrrc file? - Is /usr/bin on the PATH when XWin is started? I recall having issues around the PATH at some point ... Regards - Eliot Moss