Planner: Stop storing data in cache folder

Created on 9 Mar 2019  路  7Comments  路  Source: alainm23/planner

Nice app man, I noticed that you're storing user data in cache directory, this doesn't seem right because an app like Optimizer can wipe the cache and erase it (which happened to me), I suggest that it should be saved directly on home or inside a directory for the application starting with an . to hide it as described here.

In Progress Enhancement Question

Most helpful comment

You're right, seems that using ~/ to store data was the before freedesktop standard.

But I don't think ~/.config is the best place either because it is meant for configuration files so it isn't that safe also (backup tools might ignore these, users can delete it, etc.), the most appropriate place seems to be $XDG_DATA_HOME that is ~/.local/share/

All 7 comments

This is a bit obvious but worth noting that you may need to move the content from cache to home.

Or like other apps move to ~/.config/

You're right, seems that using ~/ to store data was the before freedesktop standard.

But I don't think ~/.config is the best place either because it is meant for configuration files so it isn't that safe also (backup tools might ignore these, users can delete it, etc.), the most appropriate place seems to be $XDG_DATA_HOME that is ~/.local/share/

Thank you very much I will take it into account in a next release

I found the database under ~/.var/app/com.github.alainm23.planner/data/com.github.alainm23.planner
has it been moved to ~/.local/share? I wish the app itself would give some kind of indication where data is stored, so it could be synced and backed up easily without having to google

Coming in the next release.

We have not made any changes to the database location yet but it will change for v2.4 thanks to @romixch. The idea is that the installation of Planner from App Center or Flathub have the same database location.

Database current location:
AppCenter
~/.local/share/com.github.alainm23.planner

Flatpak
~/.var/app/com.github.alainm23.planner/data/com.github.alainm23.planner

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antimech picture antimech  路  3Comments

rahayon picture rahayon  路  4Comments

zedtux picture zedtux  路  4Comments

Philip-Scott picture Philip-Scott  路  4Comments

4jNsY6fCVqZv picture 4jNsY6fCVqZv  路  7Comments