Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate user configuration/data from cache #25

Open
szpak opened this issue Aug 25, 2019 · 3 comments
Open

Separate user configuration/data from cache #25

szpak opened this issue Aug 25, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@szpak
Copy link
Contributor

szpak commented Aug 25, 2019

Feature description

User configuration/data should be separated from cache

Detailed information

Currently TU keeps all related data in one directory (~/.config/taskunified on Linux). It would be nice to follow the XDG Base Directory specification (not to keep it in the home directory directly), but there are also element related to the project cache. While doing backup (especially an automatic daily backup of the most important things) they unnecessarily take space. It would be good to put they to some cache specific directory (such as XDG_CACHE_HOME - ~/.cache on Linux).

Update. Electron currently doesn't support it - electron/electron#8124. Therefor, maybe you could just mention somewhere which elements are auto-recreatable and can be omitted from backup? I have found: blog_storage, Cache, Code cache, GPUCache, Partitions and maybe LOG*. Is that ok? What about Cookies? Is it use for something in the app or it is a left over from the web engine?

Version and system information

master on Fedora 30.

@leclercb leclercb added the enhancement New feature or request label Aug 25, 2019
@leclercb
Copy link
Owner

Actually, in the settings you can change the data folder location.
And then the TaskUnifier data and backups are saved in the selected folder.
All the rest is not important and can be recreated automatically.
Does it answer your question/feature ?

@leclercb
Copy link
Owner

Except the json files and the "backups" folder, all the rest comes from electron and can be deleted.

@szpak
Copy link
Contributor Author

szpak commented Dec 26, 2019

I was thinking about that and I don't have any sensible idea how to split it between XDG_CONFIG_HOME and XDG_DATA_HOME. In addition XDG_CACHE_HOME is not well supported by Electron.
Therefor, having dataFolder in place and the information is can be skipped from backup I would keep it as is waiting for electron/electron#8124 to be resolved at the Electron side (as Chromium already supports --disk-cache-dir).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants