delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/23/15:49:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_IX,TW_XK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Paul Maier" <svn-user AT web DOT de>
To: <cygwin AT cygwin DOT com>
Cc: "'Andrey Repin'" <cygwin AT cygwin DOT com>
References: <005501cd67a5$b9938510$2cba8f30$@de> <636970302 DOT 20120722180536 AT mtu-net DOT ru> <000001cd6823$dd688110$98398330$@de> <245684781 DOT 20120723050951 AT mtu-net DOT ru>
In-Reply-To: <245684781.20120723050951@mtu-net.ru>
Subject: AW: AW: problem with run.exe in Windows-startup (Autostart) directory
Date: Mon, 23 Jul 2012 21:47:23 +0200
Message-ID: <005f01cd690b$fc5e07f0$f51a17d0$@de>
MIME-Version: 1.0
X-IsSubscribed: yes
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

> 
> > 2.) D:\Programme\cygwin\bin\run.exe /bin/tcsh.exe -c startx
> 
> >     And startx is an alias to: /bin/startxwin -- /bin/XWin
> 
> Why not start it directly, then?
> It's not cygwin-specific, both are remote access services. Using intermediate
> scripts only blurring your picture, and taking more time for system to
> startup.
> 
> I would understand, if you were using run-parts ~/profile.d/ kind of scripting, like me.
> But it seems it's not the case and all you want is to start certain
> application on startup. Do it!
 


Hello Andrey,

thank you very much for your answer!


> Why not start it directly, then? [...] Do it!

What do you mean by "start directly" and "Do it"?:

- Do you mean that I should start the X Server manually every time I boot Windows?
  That certainly would work, but that's not a solution for me. I want the X Server to start automatically on Windows login.

- Or do you mean that I should register XWin as Windows service? I looked through the Cygwin manual, but I didn't find a solution
how to register XWin as Windows service.
  I also tried out; but these tree attempts don't work:


sc create testabc binpath= "D:\Programme\Alias\startx.bat" displayname= "testabc" start= demand

sc create testabc1 binpath= "D:\Programme\cygwin\bin\startxwin.exe -- /bin/XWin -clipboard -emulate3buttons 100 -nounixkill
-nowinkill -xkboptions nbsp:level3" displayname= "testabc1" start= demand

sc create testabc2 binpath= "D:\Programme\cygwin\bin\XWin.exe -clipboard -emulate3buttons 100 -nounixkill -nowinkill -xkboptions
nbsp:level3" displayname= "testabc2" start= demand


They all come with the same error message on startup:

sc start testabc2
[SC] StartService FEHLER 1053:
Der Dienst antwortete nicht rechtzeitig auf die Start- oder Steuerungsanforderung.


Thank you very much!

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019