Bugzilla – Bug 6791
Store --prefsdir path in preferences
Last modified: 2008-01-26 15:07:19 UTC
When starting SC using slimserver.pl --prefsdir <path>, I think it would be nice if the specified path was stored to the preference system. Subsequently, SC should use this stored prefsdir location without explicitly having to specify it on the command line. Same applies to --cachedir and --logdir.
prefsdir in the prefs file would be a bit circular. what if user uses --prefsdir to point to a prefs location, and the prefs file there points to another dir? cachedir is already in prefs, logconf is a command line option to point to config file which can set the location.
If --prefsdir is present on command line, my thought is that it should override and replace whatever is in the preference file in that directory. That way it won't be circular.
The prefs file path isn't stored anywhere. Either you define it on the command line or a default value is used. We could use the registry on Windows systems. But it's imho not worth the effort, as users who're switching versions, should be able to define the prefsdir path.
I'm confused about how this would work. If I start SC with "--prefsdir /some/non/standard/place" and then later restart it it without "--prefsdir", how is SC supposed to find that previously used prefsdir?
Not a good idea after all. I'm invalidating the bug.