Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 21 Aug 2003 16:31:52 +0300
Message-Id: <200308211331.h7LDVqxf031372@beta.mvs.co.il>
From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: <lucifer@tsinghua.org.cn>
Cc: cygwin@cygwin.com
Subject: Re: change wallpaper periodly by cron?
In-reply-to: <20030821031529.GH11470@emcb.co.uk> (message from Elfyn McBratney
	on Thu, 21 Aug 2003 04:15:29 +0100)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud@unix.mvs.co.il
References: <20030820140025.325F.LUCIFER@tsinghua.org.cn> <20030820082010.GB12392@cygbert.vinschen.de> <20030821095027.2B3C.LUCIFER@tsinghua.org.cn> <20030821031529.GH11470@emcb.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-8-i
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Aug 2003 04:15:29 +0100, Elfyn McBratney <elfyn@cygwin.com> wrote:
>
> Lucifer <lucifer@tsinghua.org.cn> wrote:
> > On Wed, 20 Aug 2003 10:20:10 +0200
> > Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> >
> > CV>
> > CV> It's a limitation of service processes.  You can only change it by setting
> > CV> the "Allow service to interact with desktop" property of the service.
> > CV>
> >
> > I enabled the "Allow service to interact with desktop" and it works now,
> > thank you.  However, a DOS window titled as c:\cygwin\bin\cygrunsrv.exe
> > popped out.  It's ugly.  Can that be avoided?
>
> AFAIK, it cannot. It's the ugly side effect of interactive service(s) on
> Windows.

Try to compile your program with -mwindows (without changing your
"main" function). I use this trick when I want a program without a
window (or console). If you run it from bash (or sh/csh) you wont
notice any change, but if you run it under command or cmd, it will
run without a (console) window.

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE/RMnHLFvTvpjqOY0RAvbKAJ9/NisvO2AiJpdQOdUBA4dVymz5SACeJka1
qt/n45d0M2boTdaGlKIbso8=
=uhKZ
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

