From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26713 invoked by alias); 22 Jul 2012 16:08:43 -0000 Received: (qmail 26697 invoked by uid 22791); 22 Jul 2012 16:08:41 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mout.web.de (HELO mout.web.de) (212.227.15.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Jul 2012 16:08:28 +0000 Received: from lp21723 ([84.150.137.120]) by smtp.web.de (mrweb101) with ESMTPA (Nemesis) id 0MY6sm-1TNpLt039s-00VY3g; Sun, 22 Jul 2012 18:08:02 +0200 From: "Paul Maier" To: Cc: "'Andrey Repin'" References: <005501cd67a5$b9938510$2cba8f30$@de> <636970302.20120722180536@mtu-net.ru> In-Reply-To: <636970302.20120722180536@mtu-net.ru> Subject: AW: problem with run.exe in Windows-startup (Autostart) directory Date: Sun, 22 Jul 2012 16:08:00 -0000 Message-ID: <000001cd6823$dd688110$98398330$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00484.txt.bz2 > Greetings, Paul Maier! > > > When I start a run.exe command manually, it hides fine both, the window and > > the task bar entry; > > but I have 3 scripts containing run.exe commands in the Windows startup > > (autostart) folder, and there one (only one) script brings up an unwanted > > entry in the task bar (the window itself is fine invisible). It is always > > another one out of the 3 scripts, but each time at most one (i. e. zero or 1 > > unwanted entries). > > Since I start a server here, that task bar entry stays there all day (and of > > course there is no visible window attachted to it), and if I select close, I > > also shut down the server by this. > > What exactly is in your scripts, and in the links in StartUp dir? > > > This seems a racing condition to me: > > This seems to be a wrong link/improperly designed script for me. > Or a use of a wrong tools for the task. > > > If I disconnect the internet LAN cable (then the evaluation of possible > > connections is much faster) _or_ if I move my mouse up and down right after > > Windows login to make the task bar appear and disappear some times, then all > > autostart run.exe scripts hide their task bar entries fine. > > > I have never seen more than 1 such unwanted task bar entry appearing. The > > first one seems to initialize the environment somehow, so that the other > > run.exe instances work as expected. > > > I also added a 4th script: > > run /bin/sleep 10, > > That improved the situation in a way, that unwanted task bar entries were > > less likely to happen, but they still came then and when. > > > It worked fine with the run.exe that I downloaded 1 year ago. > Hi Andrey, thank you very much for looking into this issue. With "scripts" I mean: In the folder "C:\Users\\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" I have 2 files with ending .lnk. They are normal Windows links. In their execute line they have the following: 1.) D:\Programme\cygwin\bin\run.exe /cygdrive/d/Programme/Subversion/bin/svnserve.exe -d -r "" --log-file "" To work around the run.exe problem, I changed this one from "-d" to "--service" and run it as Windows service. 2.) D:\Programme\cygwin\bin\run.exe /bin/tcsh.exe -c startx And startx is an alias to: /bin/startxwin -- /bin/XWin This one I can't run as Windows service, because I don't know how to. It works fine, when I stop the X server and double click on that .lnk file in the explorer. It also used to work fine before my Cygwin upgrade. But the current Cygwin version leaves an entry in the task bar, when executed automatically during the Windows startup. The X Server starts fine; the problem is the unneccessary entry in the task bar, staying there for the whole day. Thank you! Regards, Paul -- 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