
On Wed, Jun 27, 2012 at 3:01 PM, Daniel Trstenjak
Which directory is defined to be cleared on each login?
XDG_RUNTIME_DIR: "The lifetime of the directory MUST be bound to the user being logged in." [1]
That's not explicitly demanded for XDG_CACHE_HOME, but some systems might still do it, because of the "non-essential" data part, or put it for performance reasons on a ram disk, like they do with /tmp.
From the specification it's just not that clear what someone can assume and what not.
[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
I don't know the thought process when it was written but that sounds a little useless. I don't use GNOME or KDE but haven't yet seen ~/.cache/yi getting wiped. Maybe we should ask Will Donnelly (dyre author) why he chose XDG_CACHE_HOME.