From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13919 invoked by alias); 27 Jul 2012 12:19:19 -0000 Received: (qmail 13902 invoked by uid 22791); 27 Jul 2012 12:19:14 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mercury.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.61) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jul 2012 12:18:59 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.1.104]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 27 Jul 2012 13:10:40 +0100 Message-ID: <50128548.4050107@dronecode.org.uk> Date: Fri, 27 Jul 2012 12:19:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: Paul Maier Subject: Re: possible to run XWin as windows service? References: <006501cd6b7e$4edcffd0$ec96ff70$@de> In-Reply-To: <006501cd6b7e$4edcffd0$ec96ff70$@de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2012-07/txt/msg00018.txt.bz2 On 26/07/2012 23:30, Paul Maier wrote: > I would like to start XWin automatically on Windows startup (Windows user login). > I couldn't find any hint in the manual. > > Is it possible to run (and automatically start) XWin as windows service? Possible? Yes. You can't run an arbitrary executable as a service, you need to use the cygwin service wrapper cygrunsrv to make it respond to service control messages. However, this is not the way to achieve what you want to do. Google "Allow service to interact with desktop" to learn why... Running it from the "Startup" program group is the correct approach. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/