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 Mime-Version: 1.0 (Apple Message framework v622) In-Reply-To: <20050613142824.GA3522@calimero.vinschen.de> References: <20050609081128 DOT GC19050 AT calimero DOT vinschen DOT de> <20050613142824 DOT GA3522 AT calimero DOT vinschen DOT de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <7f53b1820d3dc5b0be848941378367c8@kreisbote.de> From: Oliver Geisen Subject: Re: Directory c:\%USERPROFILE% created Date: Mon, 13 Jun 2005 16:48:59 +0200 To: cygwin AT cygwin DOT com X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j5DEnImA015159 Hi, >> I tested this again. After starting a "local" bash (local means i >> start >> it via doubleclick from within windows) i can see a "USERPROFILE" >> env.-var. >> >> If i do this in an bash started remotely (via sshd) i can't see it >> anymore. >> So i think this variable comes from Explorer of whatever and is not >> initialized >> within a ssh-shell session. >> This is also reflected by "cygpath -D" which outputs >> "/cygdrive/c/%USERPROFILE%/Desktop". >> >> I found no trace where this var is set, so please give me a hint. > > It's set inside of Cygwin if possible. It opens the registry and > tries to read the following key: > > HKLM\SOFTWARE\Microsoft\Windows > NT\CurrentVersion\ProfileList\$USERNAME\ProfileImagePath > > If it's available, it's used as $USERPROFILE, otherwise $USERPROFILE > stays empty. "empty" or "not set" ? Are you shure you mean $USERNAME in the sense of users login name, or users SID ? In "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" on my NT4-WS are many folders like "S-1-5-21-1570706540-1911978263-1210191635-1007/", and so on. In there is a ProfileImagePath key which contains "%SystemRoot%\Profiles\admin". $SYSTEMROOT points to "C:\WINNT" in my ssh-shell. Mit freundlichen Grüssen, Oliver Geisen --------------------------------------- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: technik AT kreisbote DOT de --------------------------------------- -- 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/