delorie.com/archives/browse.cgi | search |
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:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=bjhoaISPyVNtLOda8ynqYqc3mlOxf//jpti99/sk7aI | |
IU5Ey6O+opEPLma+NnNXTxX3ODDKHALy5NYZuC69jlwW5Zy6FsTA+MER8zvsWIQw | |
f0bq4p70QQL/ht6+KE0LtAhwlvfcTNsiFO5uu3A0EiwKsjjnYZh+zLhdOruLZTVg | |
= | |
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:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type:content-transfer-encoding; | |
s=default; bh=7WeOITX445BmWYWlcOqDEoU7XoA=; b=O7N4wJeLdcrpRlgAf | |
kOuLgZ3s7k0vjkkaUgj4PiieLe0Oos8W1ehIsoI5rphTJHxEbTuqoMWZJ4rCaErA | |
JdnGV0Ts3HTnyPIpsapBcucA2dOArDH+zKQ/u4gG6ZxRFh98NPL+PoDAGDs2jSsY | |
Yw6XNNYG1lt6qM1PAXLnsr5Gfg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-5.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 |
X-HELO: | mail-vc0-f175.google.com |
X-Received: | by 10.221.63.8 with SMTP id xc8mr5680821vcb.37.1414093231707; Thu, 23 Oct 2014 12:40:31 -0700 (PDT) |
MIME-Version: | 1.0 |
In-Reply-To: | <1413910316.59036.YahooMailNeo@web162803.mail.bf1.yahoo.com> |
References: | <1413488630 DOT 82429 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com> <544055FF DOT 2030604 AT cs DOT umass DOT edu> <1413517183 DOT 86611 DOT YahooMailNeo AT web162801 DOT mail DOT bf1 DOT yahoo DOT com> <1413517863 DOT 36122 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com> <54411638 DOT 2000104 AT cs DOT umass DOT edu> <1413910316 DOT 59036 DOT YahooMailNeo AT web162803 DOT mail DOT bf1 DOT yahoo DOT com> |
From: | Doug Henderson <djndnbvg AT gmail DOT com> |
Date: | Thu, 23 Oct 2014 13:40:10 -0600 |
Message-ID: | <CAJ1FpuNYaO1gxjy8b7Axu=RJtr95uCvFLTK=JDLZBdfjJ2zW6Q@mail.gmail.com> |
Subject: | Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64 |
To: | cygwin <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id s9NJekPM019357 |
On 21 October 2014 10:51, John Wiersba wrote: > I'm trying to use run.exe to avoid a flashing console window, but it is not working on my cygwin64 install on Win7Pro-64. This is a fresh install from 10/20/2014. I've attached my cygcheck.out. I've tried the following windows shortcuts and all cause a console window to briefly flash (in the case of mintty a console window flashes before the mintty terminal is displayed). > > D:\cygwin\bin\run.exe /bin/bash -c "echo hi" > D:\cygwin\bin\run.exe /bin/env -i PATH=/bin bash --norc -c "echo hi" > D:\cygwin\bin\run.exe /bin/env -i PATH=/bin mintty bash --norc > > > Since hiding the console window is the main purpose of run.exe, it seems that it is badly broken for Win7Pro-64. Short answer: minimize the shortcut window. Long answer: In windows explorer, right click on the shortcut and select "Properties" from the context menu (it's the last item). On the "Shortcut" tab (it's the default tab), change the value of the drop down labeled "Run:" from "Normal window" to "Minimized". Click "OK". Now, that flashing window will open minimized, which is much less noticeable. It may not even paint on the task bar before the mintty window opens. On my machine, the mintty icon paints to the right of a blank icon space, and immediately slides left to abut the previous icons on the task bar. If your task bar is hidden, you may not even see that. For clarity, let me describe the process for creating your shortcut: In windows explorer, right click in a directory (i.e. the right pane), select "New" -> "Shortcut". In the frst panel of the shortcut wizard, enter "D:\cygwin\bin\run.exe" as the location. At this point you can only enter the name of the executable without command line arguments. Click "Next" and in the second panel of the shortcut wizard, enter a name for the shortcut and click "OK". Now right click on the shortcut and select "Properties". On the "Shortcut" tab, change the Target:" text box to add arguments to the exe's command line, so the box contains "D:\cygwin\bin\run.exe /bin/env -i PATH=/bin mintty bash --norc". You could also change the target to "D:\cygwin\bin\env.exe -i PATH=/bin mintty bash --norc" with equivalent result. Or even "D:\cygwin64\bin\mintty.exe ./env.exe -i PATH=/bin bash --norc", now you set "Run:" to "Normal window". BTW, this search may help to discover how to create a shortcut from the command line. https://www.google.com/search?q=create+windows+shortcut+command+line Doug -- Doug Henderson, Calgary, Alberta, Canada -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |