Open livingsilver94 opened 1 year ago
@livingsilver94
Which of the two is more prevalent? And which of the two is more correct?
I'm asking from the position of wondering whether projects which use $HOME
instead of $XDG_CACHE_HOME
would consider changing from $HOME
to $XDG_CACHE_HOME
if a bug was filed?
The pragmatic solution is to set both of course. Of the two, $XDG_CACHE_HOME
seems the more correct solution to me.
$XDG_CACHE_HOME
is indeed more correct, and specific. Creating a custom cache directory inside $HOME
is a behavior some non-xdg-conformant applications have.
Anyway, regardless of the caching necessity, the $HOME
variable is assumed to be set by most Linux application for... uncountable reasons.
Some build systems (e.g. the Go bootstrapping, or gradle) use a cache directory. There's currently no environment variable set to provide one. We may set
HOME
orXDG_CACHE_HOME
to solve the issue. Or both.