KDAB / Charm

The Cross-Platform Time Tracker
GNU General Public License v2.0
192 stars 70 forks source link

1.12 moves database location #335

Open adriaandegroot opened 6 years ago

adriaandegroot commented 6 years ago

In 1.11, the database (on a FreeBSD system, anyway) lived at .local/share/data/KDAB/Charm/Charm.db, but now at .local/share/KDAB/Charm/Charm_debug.db. This leads to something that looks like data loss (because on starting the upgraded Charm, it doesn't find the database and so starts anew).

adriaandegroot commented 6 years ago

(I should add that this. and #334, assume that Charm is intended as a product for third-party consumption)

TheOneRing commented 6 years ago

Hm the debug suffix should only be set in full debug builds, meant for developing. The suffix should prevent data loss by not working on your production db when testing new features.

adriaandegroot commented 6 years ago

I see. Previous version didn't do that when built normally -- and FreeBSD packaging tends to leave the build type unspecified. I'll add the build type and see what happens.