X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:message-id:subject:to:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=FfX PCrAa0THjGB3NeqoTskhReht/NBNTTfaTz7y8a9BN9bhYr/Ipg4yUtJ6qTLwbjwo aiY2Rj9d2uriAMndK4pC+pxF7LiYRVw4gPrb3w7yX4O4aWlE2oKN1B4g2+aBazK2 CtmEKgCDFY3TiJev8n1XsFd54Ayp3Lqtba5jUJK4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:message-id:subject:to:date:mime-version :content-type:content-transfer-encoding; s=default; bh=YGGnLFh2l HnHKsCpfbLjJ/I4i8c=; b=Wy7tMRalWJAISW8yGtd5TVuvfEWEOYYT+L3WtQ0Vw kCEpEERVcADuwvMN2jspHbDrK5fi8DJpWAGLqzOm698uVY52FDrnoBupC8vqVW1e ul60e0WjDVavimSEZyttH3/I+411l/Rg6+okRwuq1SvL/QoAOOVX0ciUM7qX+PgT pQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Dept, H*UA:version, H*x:version, Centre X-HELO: cliff.scrc.umanitoba.ca From: Gilles Detillieux Message-Id: <201707041757.v64Hvh5n031763@cliff.scrc.umanitoba.ca> Subject: XWin Server doesn't start reliably under Windows 10 Creator's Update To: cygwin AT cygwin DOT com Date: Tue, 4 Jul 2017 12:57:43 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit A few people on this list have reported problems with XWin Server not starting reliably from the Start menu, particularly after recent updates. I've found this too, and I think I have a reasonable fix for it. There seems to be an incompatibility with recent versions of the XWin server launcher shortcut and Windows 10 Creator's Update. What seems to be happening is that the launcher doesn't wait for the server to start, and when the launcher exits the server dies before it has a chance to get itself running properly. Nothing gets logged when it fails, which makes it tricky to diagnose this problem when it happens (which is frequently!). I found a few tweaks to the shortcut target script to keep run.exe from exiting prematurely and killing the server. The trick is to find the launcher shortcut and make two simple changes to the one-line script in the shortcut's target. Click on Windows 10's start menu, navigate to the Cygwin-X folder, click on it, then right-click on the "XWin Server" icon, select "More...", and click on "Open file location". In the folder that opens, right-click on the "XWin Server" icon in there, and select "Properties". In the Properties window, find the Target field. It should have the command line: C:\cygwin\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin" Change it to: C:\cygwin\bin\run.exe --wait --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin &" i.e. add the --wait option to the run.exe command, and add the "&" sign to the end of the startxwin command. This changes the stage at which startxwin goes into the background, and seems to work reliably under Creator's Update. Ultimately, this may be down to a problem with how run.exe works (or doesn't) under recent Windows 10 systems, but this workaround has worked for me. When you save this change, Windows will require admin. privileges, which is easy if you have an admin. account, but I expect with a limited account you'll just have to provide the username & password for an admin. user. If you also have a Desktop icon for XWin Server, change it the same way, by right-clicking on the icon and selecting Properties. Finally, if you also pinned the icon to the taskbar, you can just unpin it and re-pin it from the updated Start menu entry. Hopefully the maintainers can find a more permanent solution to this, or at least implement this tweak in the xorg-server package. -- Gilles Detillieux Spinal Cord Research Centre Dept. of Physiology and Pathophysiology, Rady Faculty of Health Sciences, Univ. of Manitoba, Winnipeg, MB -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple