From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16283 invoked by alias); 26 Aug 2010 17:38:43 -0000 Received: (qmail 16252 invoked by uid 22791); 26 Aug 2010 17:38:42 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_TX X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Aug 2010 17:38:36 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.5]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 26 Aug 2010 18:38:32 +0100 Message-ID: <4C76A69B.1010309@dronecode.org.uk> Date: Thu, 26 Aug 2010 17:46:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree@cygwin.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: strata_ranger@hotmail.com Subject: Re: Unable to start XWin with --nolock References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2010-08/txt/msg00123.txt.bz2 On 26/08/2010 18:18, Richard Gitschlag wrote: > I am having trouble starting XWin on my system. > > It complains about being unable to "read lock" the file -- okay, so it resides on a FAT32 drive, no big. Just add --nolock to my command line and move on. > > But it doesn't work. But it does. But doesn't. > > I AM able to run XWin from inside cygwin's bash prompt: > > $ xinit -- -nolock -multiwindow > $ startxwin -- -nolock > > But I can NOT run Xwin from a Windows command prompt or a Start Menu shortcut: > >> /cygwin/bin/run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit -- -nolock -multiwindow > >> /cygwin/bin/run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin -- -nolock > > In these cases I am given the read-lock error, and: > > "XWin was started with the following command line: X :0" > > In other words, I am unable to pass my command-line options to XWin, so I cannot work around the error. > > Did I overlook something? What do I do next? You need to quote the command after -c to prevent bash assuming those options are meant for itself. This has been answered a few times before, e.g. at [1] I'm not sure if you arrived at using -nolock from reading FAQ 3.4 [2], perhaps I need to improve that FAQ to give more guidance. [1] http://sourceware.org/ml/cygwin-xfree/2010-04/msg00026.html [2] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-cant-read-lock-file -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/