I would like to cache some files for an extension. The idea is to have updates on data that would evolve to show options to the user. My question is if a directory under Storage_writable is a good place, or, there is a better one I should look at. The idea is that the data can be used when:
- there are updates for data without needing to update the extension and
- the extension is updated the data should survive and possible to be reused by the next version of the extension.
I understand that using thePathSettings
works no matter which OS is being run. In this regard, something similar to $XDG_CACHE_HOME in LibreOffice is what I would be looking for, but multiplatform.
Related to this, I would like to know how can I remove data from that directory when the extension is removed by the user, in order to free and recover the space. Is there maybe a kind of hook or postaction when removing and/or installing an extension?