[PATCH] qthelper.cpp: use the Roaming path on Win32

Lubomir I. Ivanov neolit123 at gmail.com
Mon Oct 5 10:36:11 PDT 2015


On 5 October 2015 at 20:23, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>

Dirk, please read the comments i've made and let see if this is
portable on the other OSes as i can't test on OSX and Linux (ATM).

with this patch the git cache files are now written exactly where the
suggested user file is (on Win32 at least). example user folder
structure:

C:\Users\<name>\AppData\Roaming\Subsurface:
<1de30b7d6252b57e>
hashes
my_default_file.XML

let me know if you want another patch to modify the git-access stuff
to be in sub-folder e.g. "cloudstorage"

what i don't like is that default config file path and git cache thing
use different backends...
the thing is, in my opinion qthelper.cpp:system_default_directory()
should not exist and instead we should use strictly C (OS backends) to
retrieve the user paths.

lubomir
--


More information about the subsurface mailing list