Start-up parameters locations

Lubomir I. Ivanov neolit123 at gmail.com
Tue Nov 3 07:49:35 PST 2015


On 3 November 2015 at 17:46, Dirk Hohndel <dirk at hohndel.org> wrote:
> On Tue, Nov 03, 2015 at 05:41:59PM +0200, Lubomir I. Ivanov wrote:
>> On 3 November 2015 at 17:24, Dirk Hohndel <dirk at hohndel.org> wrote:
>> > On Tue, Nov 03, 2015 at 02:47:23PM +0000, John Smith wrote:
>> >> >
>> >> >  but the user folder can
>> >> > contain the default dive log file and any modified printing templates,
>> >> > which if lost will make the user mildly annoyed.
>> >> >
>> >> > if voted upon, i can send a patch.
>> >>
>> >> I realise that, but if you recall you suggested having tick boxes allowing a basic uninstall or various higher levels.
>> >
>> > Yes, that was the conclusion and that's why I asked to delay this until
>> > after 4.5 was out.
>> >
>> > I was thinking we should offer something like this:
>> >
>> > - basic uninstall: remove the installed binaries, don't touch anything else
>> > - uninstall and clear registry (with apropriate warning)
>> > - uninstall, clear registry, remove Subsurface data forlders (with warning
>> >   that this could be removing the user's data file)
>> >
>> > This could be done with check boxes in the uninstaller. At least for the
>> > third one I'd prefer if we had an additional confirmation dialog.
>> >
>> > Does this sound reasonable, Lubomir?
>> >
>>
>> already on it,
>> but i need to store the system_default_directory() in the QSettings()
>> "GeneralSettings" (registry on Win32) on startup.
>> any suggestions in which file should i do that?
>
> You mean in which section? That sounds like "General".
> Or am I misunderstanding your question?
>

to clarify - in which cpp file?
we don't need the default directory stored in the QSettings on Android
for now, so i was thinking of just adding it in the desktop
MainWindow() constructor.

QSettings s;
s.beginGroup("GeneralSettings");
s.setValue("default_directory", system_default_directory());
s.end();

the uninstaller needs the "default_directory" registry key, so that it
knows which directory to delate...

lubomir
--


More information about the subsurface mailing list