delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/22/16:44:47

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: sshd-started sessions don't see system environment?
Date: Thu, 22 Mar 2007 14:44:11 -0700
Lines: 18
Message-ID: <etutbb$2t5$1@sea.gmane.org>
References: <et7b9l$8pu$1 AT sea DOT gmane DOT org> <eteuvc$70h$1 AT sea DOT gmane DOT org> <45FB0184 DOT 9204D1A1 AT dessent DOT net> <etus37$rkn$1 AT sea DOT gmane DOT org> <4602F68B DOT F9341EEE AT dessent DOT net>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070116 Thunderbird/2.0b2 Mnenhy/0.7.5.666
In-Reply-To: <4602F68B.F9341EEE@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Brian Dessent wrote:

> I suppose a way to reconcile these would be a utility that you call from
> ~/.profile that enumerates the list of environ key/value pairs from the
> registry and installs them into the process' environment.  

That's an interesting idea.

regtool list -v "/machine/SYSTEM/CurrentControlSet/Control/Session 
Manager/Environment"

and

regtool list -v "/user/Environment"

Thanks!  At least the germ of an idea (it'll need some work, obviously; 
putting all the settings again into .bash_profile is probably a lot 
easier :-).


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