[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] cross-platform prefs storage?



On Jun 14, 2004, at 6:55 PM, Nicolás Sanguinetti wrote:

- Where do Windows programs ususally store these things?  The registry
(blah)?  A .ini file in the launch directory (double blah)?
Why the double-blah? I usually keep the prefs in ini files

Note that I don't have a problem with .ini files as such, I just don't want to have a single .ini file, located in the directory where the executable is located, to be used by all users. Here are some reasons why:

- Leads to maintenance problems. When the user installs a new version of the program in a new directory, all settings are lost.
- Config settings are effectively global; All users on the same machine will have the same config file, and therefore overwrite one another's config whenever they make changes.
- Requires write permissions in the launch directory. What if the program directory is only writable by admin users? The login user's homedir should always be writable.

I can probably think of more reasons, given time :) I think it's also simply a matter of personal conviction on my part, based on using multi-user systems for the past 15 years, that per-user settings for software preferences are usually the way to go.

//jack