eca icon indicating copy to clipboard operation
eca copied to clipboard

Chat histories should not be saved in .cache directory

Open tlbgr opened this issue 2 months ago • 3 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug

All chat histories are saved under $HOME/.cache/eca, but by the XDG standard, the cache directory is supposed to hold non-essential (cached) data, i.e. data that can be regenerated. This is clearly not the case for the eca chat history storage. To my understanding, I should not lose any data when I delete the .cache directory. See e.g.: https://specifications.freedesktop.org/basedir/latest/

To Reproduce

Run eca through e.g. eca-emacs.

Expected behavior

Chat history should be stored for example under .local/share.

tlbgr avatar Sep 24 '26 15:09 tlbgr

Hum, interesting, I wonder where we should storage tho? and if we change that we will need to make it backwards compatible of course c/c @zikajk

ericdallo avatar Sep 25 '26 14:09 ericdallo

I think $XDG_DATA_HOME would be the canonical place (defaults to $HOME/.local/share). Not sure about backwards compatibility.

tlbgr avatar Sep 25 '26 14:09 tlbgr

Done! thanks for the suggestion, I didn't know about XDG_DATA_HOME and sounds exactly made for that we are going to read bloth old and new place to avoid breaking changes

ericdallo avatar Oct 08 '26 15:10 ericdallo