delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/10/15:21:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4991E1CC.9060804@tlinx.org>
Date: Tue, 10 Feb 2009 12:21:32 -0800
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: RFE?: CygWinDir in ENV? (was Re: How does one find where Cygwin was installed from Windows?)
References: <4990B031 DOT 4050807 AT tlinx DOT org> <4990B128 DOT 7030004 AT cygwin DOT com> <4990CB8D DOT 3050704 AT tlinx DOT org> <4990D05A DOT 4050202 AT cygwin DOT com> <4990DA52 DOT 9050900 AT tlinx DOT org> <4990E0BF DOT 1010502 AT cygwin DOT com> <4990EC89 DOT 8070901 AT tlinx DOT org> <4991004F DOT 1080006 AT cygwin DOT com>
In-Reply-To: <4991004F.1080006@cygwin.com>
X-Stationery: 0.4.8.12
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

Larry Hall (Cygwin) wrote:
>>     What do you think? 
> 
> Actually, this has been discussed already and has been resolved by
> having 1.7's 'setup.exe' putting the Cygwin root installation directory
> in... the registry!  See HKLM/Software/Cygwin/setup, the "rootdir"
> value.
> 
> I know, it's not in the environment.  That might be nicer.  But such
> a change could spoil my "there's no good way" statement so I can't
> endorse it. ;-)
---
	Plblblblb....! (*raz*)

	Um...so..um...
	I know it could spoil your day and all...but it really would
be more *linux* like if it was added to the environment variables.

	But the environment variables, in windows, get their initial
values from the registry!  So ...well, you could still complain that
since they start from the windows reg, they are contaminated?...

	I know it wouldn't be "ideal" for perverse reasons,
but maybe in "1.7" (or even the next maint release -- since whoever
"owns" the cygwin-package that owns "startxwin.bat" may want to fix
their package's startup ".bat" file, sooner rather than "later"), a
"CYGWINDIR" string value could be added under :
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
(assuming installed at machine level and not in a per user).

I forget, does Cygwin offer the option of installing for 1 user vs. "all users"?
I only remember it being installed for "all"...?

	Besides your distaste for something that could make it more difficult
to complain, might that be a more "generic" solution?

	Then anything else in "Cygwin" that uses paths -- including
setup's "cygwin.bat" could use %CygWinDir% -- even registry string values
could be change to expandable string values (REG_SZ -> REG_EXPAND_SZ)
that could use %CygWinDir% in their expansions -- so even fewer places
would have to have the "Cygwin-install" location expanded as text in
the registry (or any other batch files).

	Whatcha think?  I'm sure I'll post something before too long that
you can complain about again...I can almost guarantee that! ;^&

--
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/

- Raw text -


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