From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18872 invoked by alias); 17 Oct 2013 21:33:03 -0000 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 Received: (qmail 18860 invoked by uid 89); 17 Oct 2013 21:33:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: out3-smtp.messagingengine.com Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 17 Oct 2013 21:33:02 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3FC8D205A0 for ; Thu, 17 Oct 2013 17:32:59 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 17 Oct 2013 17:32:59 -0400 Received: from [172.31.35.5] (unknown [192.160.117.134]) by mail.messagingengine.com (Postfix) with ESMTPA id DF2F16800B5; Thu, 17 Oct 2013 17:32:58 -0400 (EDT) Message-ID: <5260576B.40606@cwilson.fastmail.fm> Date: Thu, 17 Oct 2013 21:33:00 -0000 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: Using run.exe to start XWin with different display number References: <525FE1B8.8050006@nrl.navy.mil> In-Reply-To: <525FE1B8.8050006@nrl.navy.mil> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-10/txt/msg00027.txt.bz2 On 10/17/2013 9:10 AM, Will Cladek wrote: > However, when I alter the Windows shortcut to the following, or run the > following command from a Windows command prompt > > C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c "/usr/bin/startxwin.exe > -- :1" > > it gives me an X server always with display :0. > > Why would it be ignoring the -- :1 part when starting with run.exe? Is > there something I need to change about that command to get it to work > from Windows command prompt/a shortcut? Looks like it is the new parsing code. This: C:\cygwin64\bin\run.exe --run-notty --run-debug=2 /usr/bin/bash.exe -l -c "/usr/bin/startxwin.exe -- :1" reports that run is trying to execute the following command line: C:\cygwin\bin\bash.exe -l -c /usr/bin/startxwin.exe -- :1 That is, the quotes are dropped. For now, try escaping them: C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c \"/usr/bin/startxwin.exe -- :1\" -- Chuck -- 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/