taskunifier-app
taskunifier-app copied to clipboard
Separate user configuration/data from cache
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 - https://github.com/electron/electron/issues/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.
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 ?
Except the json files and the "backups" folder, all the rest comes from electron and can be deleted.
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 https://github.com/electron/electron/issues/8124 to be resolved at the Electron side (as Chromium already supports --disk-cache-dir).