Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 4 Aug 2002 15:18:16 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygwin-ENV-Variable Message-ID: <20020804191816.GA12853@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3D4D7A06 DOT 2060402 AT upb DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D4D7A06.2060402@upb.de> User-Agent: Mutt/1.3.23.1i On Sun, Aug 04, 2002 at 09:01:26PM +0200, Sven K?hler wrote: >hi, > >i'm trying to use gpg with Mozilla. > >i don't like the native windows-port - because some ill person decided >to put config-files into c:\gpg - so i'm happy to have my cygwin port. > >i realized that enigmail doesn't pass the CYGWIN-Variable to gpg when >executing. > >could you imagine chaning the ENV-Variable into a Reg-Key!? > >haveing a Reg-Key somehow sound better in my ears, than haveing an >Env-Var. what do you think? There is already an undocumented way to do this in cygwin via the Program Options registry key. Create a new key: HKLM\SOFTWARE\Cygnus Solutions\Cygwin\Program Options under this, you can create an string entry named "default" with data containing CYGWIN environment variable options. If you add an "export" option to the end of the data values, a CYGWIN environment variable will be regenerated from the registry and visible in the environment. You can also set options for individual programs by adding an entry like: Name Type Data c:\usr\sbin\inetd.exe REG_SZ tty export That will make cygwin always set the cygwin option to tty and export a CYGWIN=tty for every program that inetd invokes. The main reason this this is not documented is that there is no programmatic way to manipulate it and I am not comfortable with telling people how to edit the registry "by hand". However, if you are familiar with the registry, then setting this value should not be a big deal. cgf -- Please do not send me personal email with cygwin questions. Use the resources at http://cygwin.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/