X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45C34383F85B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1590164672;
	bh=4EFEhtQbi0O7kn1Lq7pV+HDd3JxSA1wMJlj+J1e4mp4=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:Cc:From;
	b=OJ+0gPbWG65beaNKQlDajaDpDdDgaoJuJTArb8UBASmAB+95kyw0b9/CgSqpkdjsX
	 SuncPiViHqF3vtWxx+DqZWKlde4vHGCR8cWTRNQ3YP6h4APeWqR7vfVWfacsxER2cJ
	 R/OZZ9+oG2EQRaCK/0lo8pvHrBBa/y3y6uTGXnoY=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 86033386F471
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.jhmg.net D44B740322
To: cygwin@cygwin.com
Subject: Cygwin/X custom .xlaunch problem?
Autocrypt: addr=jhg@jhmg.net; prefer-encrypt=mutual; keydata=
 mQGiBDWEWocRBADfF9Q6lhkW9USReZ96cBC93kq3bblkNslVAZzm9itW7sAEzHbydIZ9hZjm
 e93UxUPzg1zGXX9xrdQy0+lHxkj2wvzgEF50Kqjft6KAd8AqiNmcbu5Q+/SHIP87C/tD/wWO
 TX7I99ekggy+5a6illN/s7MhuPIsMtt3ofFFcuOvswCg/08V11KALulG6u9j1affyHy20UMD
 /A1MRT3YZt6NJE9XbcalVLQzWc+ArCkW0oxNs/wrQ26lYoWuj20nusq9MDkuOL1h1FxeUrgx
 kKP+1zyYaQkB2lbJyvGvIpXgxY4vUnOXwMovTcRST3bWOOSIiYVOzKWJh5fPtoEaU5wFZ6yU
 lu/QGoS8Lt9QOI/XjjRaJjf0T6rKBADTn4xcxNIQNWSxJthmH3ipn39+sizwkZHfmAVHUf6w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CHHmI+4tNkU/JmgLy+t3
Message-ID: <66d79496-8177-16c5-3d8f-0e90c8117abf@jhmg.net>
Date: Fri, 22 May 2020 09:24:28 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Firefox/68.0 Thunderbird/68.8.0
MIME-Version: 1.0
Content-Language: en-US
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jim Garrison via Cygwin <cygwin@cygwin.com>
Reply-To: jhg@acm.org
Cc: Jim Garrison <jhg@jhmg.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

I've installed Cygwin/X and have a question about custom .xlaunch
configurations.

I would like to pin a custom .xlaunch config to my Start menu, but do
not seem to be able to do so.  The Cygwin/X install did set up a file
association between the .xlaunch extension and run.exe, so if I
double-click a .xlaunch file it runs the X server with the stored
custom config.

However, in the right-click context menu for the custom .xlaunch file
the "Pin to Start" option is not available.  It seems Windows does not
recognize the .xlaunch file as eligible for "pinning" to Start.

Next I tried copying the custom .xlaunch file directly into the Start
Menu folder
(under C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin-X),
but no entry appears in the actual Start Menu.

I also tried creating a shortcut to the .xlaunch file and attempting
to pin that, as well as copying the shortcut into the Start Menu
folder. Neither of those options worked.

So then I tried customizing the XLaunch shortcut (which IS already
pinned to the Start Menu) and adding the

    -run /path/to/custom/.xlaunch

to the command line, as in:

    C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c \
        /usr/bin/xlaunch.exe -run /home/jim/.xlaunch/jhg.xlaunch

The resulting shortcut CAN be pinned, but the -run option seems to be
ignored. XLaunch starts up the option dialog instead of running X with
the custom configuration.

Running that same command from a Windows .cmd has the same effect --
XLaunch brings up the customization dialog as if the -run option was not
present.  The -load option also fails to work as described in the man
page.

I think this is a bug because run.exe seems to be ignoring the -load and
-run options.

-- 
Jim Garrison jhg@acm.org
--
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
