this is a great opportunity for me to mess up big time before the beta.
yey...

* motivation:

having two different backends that do the same thing is a very bad idea.
using Qt helpers is tempting but for the more serious stuff the OS's C API
is the more reliable way to go.

since both the user-path and user-filename share a similar idea, we now
use a helper function in all <os>.c files - system_default_path_append().

path pointers are static and maintained in main.cpp, heap wise.

* please do test:

grind these patches carefully if you are in the mood for reading C.
also, i have only tested the linux.c / macos.c mods in a external test.c
under win32 to see if it compiles / runs, but this hasn't recevied actual
OS testing. hopefully no regressions...

[PATCH 1/6] windows.c: sanitize the backend for path retrieval
[PATCH 2/6] macos.c: update the default path retriaval
[PATCH 3/6] linux.c: update the default path retriaval
[PATCH 4/6] qthelper.cpp: remove system_default_directory()
[PATCH 5/6] git-access.c: use <userpath>/cloudstorage/ for the cache
[PATCH 6/6] main.cpp: manage the default filename/directory on the

lubomir
--
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to