This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
setup.exe option parsing no longer in flux
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 3 Jul 2009 12:54:39 -0400
- Subject: setup.exe option parsing no longer in flux
- References: <20090628040211.GA31226@ednor.casa.cgf.cx> <20090628040425.GA31257@ednor.casa.cgf.cx>
- Reply-to: cygwin-apps at cygwin dot com
On Sun, Jun 28, 2009 at 12:04:25AM -0400, Christopher Faylor wrote:
>On Sun, Jun 28, 2009 at 12:02:11AM -0400, Christopher Faylor wrote:
>>I just checked in some preliminary changes to setup.exe option parsing.
>>I modified it so that all saved options are now stored in a single file
>>"/etc/setup/settings.rc". Options are retrieved via a UserSettings
>>"get" method. As a stopgap measure, the old single-file method is used
>>when an option is missing from settings.rc but all parsing of this file
>>is limited to one function rather than in a few different places.
>>
>>I haven't done exhaustive testing on this. It seems to work ok but I'll
>>do more checking tomorrow. At some point I'll add the saving of the chooser
>>screen geometry. That was more-or-less what predicated this rewrite. I
>>didn't like the fact that every class opened its own file and did its own
>>parsing of the file; I didn't want to write another parser/generator for
>>saving screen geometry.
>>
>>Anyway, please consider setup.exe to be unstable right now. The CVS
>>trunk is not ready for prime time.
>
>Sorry. On rereading, I see that "option parsing" was incorrect
>terminology. I'm just talking about "saved settings".
I think this code is relatively stable now. The new saved settings file
is "/etc/setup/setup.rc". The settings are stored as:
key1
setting
...
key2
setting
...
etc.
One setting is "chooser_window_settings". This is the field which
remembers what you last did with the package selection screen. If you
have de-maximized it, that will be remembered.
Please let me know (via cygwin-apps of course) if there are problems
with this code. It's a pretty big rewrite so I could have easily gotten
something wrong.
cgf