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: Thu, 26 Sep 2002 21:38:21 -0700 From: Doru Carastan Subject: Re: [Proposal] Moving user mount information to HKLM To: cygwin AT cygwin DOT com Message-id: <000b01c265df$b61ef630$4501a8c0@scrapbox> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal How about breaking free from using the windoze registry. There is absolutely no special need to use it IMO. All the mount info can be stored in a plain ASCII file like 'cygwin.cfg'. As part of its initialization the cygwin1.dll can use GetModuleFileName() to figure out from where it was loaded and attempt to parse a possible config file located in the same dir with it. If this fails it will assume that it was loaded from /bin and attempt to read the config file from ../etc. If this fails then it can throw an error or try to recover the old info from the registry and generate the file based on it. Once it knows about the system mounts it will look in the user's home dir for something like .cygwinrc and get from there any user mounts and other settings like the ones set using the CYGWIN env variable. Let me know if I missed something. Thank you, Doru Carastan -- 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/