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 777D0385AC2A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney AT btinternet DOT com X-SNCR-Rigid: 60FF56FA0413CF93 X-Originating-IP: [86.139.156.65] X-OWM-Source-IP: 86.139.156.65 (GB) X-OWM-Env-Sender: jonturney AT btinternet DOT com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvtddruddtuddgkeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeelieegheeghfevfeevhfdviedugfdvuefhjeehteejffefhfeuudetheeugfffhfenucfkphepkeeirddufeelrdduheeirdeiheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddrudduudgnpdhinhgvthepkeeirddufeelrdduheeirdeihedpmhgrihhlfhhrohhmpeeojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhequceuqfffjgepkeeukffvoffkoffgpdhrtghpthhtohepoegthihgfihinhestgihghifihhnrdgtohhmqedprhgtphhtthhopeeorhholhgrnhgusegrshhtrhhofhhothhordhorhhgqe X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Subject: Re: Cygwin/X on Windows 10 won't launch apps from .XWinrc menus To: Roland Roberts <roland AT astrofoto DOT org>, The Cygwin Mailing List <cygwin AT cygwin DOT com> References: <beb86b97-7c86-3685-dd09-e2f98e5070d9 AT astrofoto DOT org> From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk> Message-ID: <b13207ee-740f-f90a-21bb-0ca29efbc471@dronecode.org.uk> Date: Sat, 21 Aug 2021 15:49:46 +0100 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: <beb86b97-7c86-3685-dd09-e2f98e5070d9@astrofoto.org> Content-Language: en-GB X-Spam-Status: No, score=-1192.6 required=5.0 tests=BAYES_00, BODY_8BITS, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no 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 <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> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 17LEpgVh010906 On 10/08/2021 13:58, 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). I'm not sure what the evidence for this hypothesis 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 > > where you can see those processes are launch, but they show as > additional instances of XWin and mintty was never started. My .XWinrc > contain this > > menu root { > "Cygwin Terminal" exec "/bin/mintty" > "Emacs" exec "/bin/emacs" > // […] > } The process being created, but not changing command is usually symptomatic of problems with cygwin's fork emulation (i.e. the child process gets stuck during the complex synchronization it does with the parent, before exec gets called) > 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. There are some suggestions about dealing with fork problems in the FAQ, but sometimes nothing works and we don't know why. -- 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