Sample Header Ad - 728x90

$XDG_CACHE_HOME vs. $XDG_STATE_HOME

4 votes
1 answer
3888 views
[Based on the XDG Base Directory Spacifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#:~:text=actions%20history%20(logs%2C%20history%2C%20recently%20used%20files%2C%20%E2%80%A6)) , $XDG_STATE_HOME should store history and log of the programs. But it is very common to see UNIX programs storing these kind of stuff at $XDG_CACHE_HOME, that is, $HOME/.cache. Why?
Asked by Rubem Pacelli (313 rep)
Apr 17, 2022, 05:42 AM
Last activity: Jul 5, 2022, 03:50 PM