top | item 42983218

(no title)

Varriount | 1 year ago

What software should be doing is using XDG_CACHE_HOME, if it is set (along with the other XDG environment variables). That way cache directories will be where the user expects.

discuss

order

quotemstr|1 year ago

The XDG specification (https://specifications.freedesktop.org/basedir-spec/latest/) is

  1. short and easy to read,

  2. good for users, and

  3. can be implemented in five minutes.
If we can't have programs follow this simple decades-old convention, we have no hope whatsoever of voluntary consistency in our computing world. It's literally because of the mentality espoused in this article that we can't have nice things.

Unfortunately, we have nothing but social pressure and incensed HN comments to get developers to follow it. That's why the mobile world adopted a "you shall" model: a developer won't spent five minutes to save a million years of user time unless there's some social or technical guardrail forcing his hand.

WhyNotHugo|1 year ago

Agreed. What op wants in this case, is for XDG_CACHE_HOME to default to ~/cache when unset.

The idea is quite reasonable: suddenly all tools that show disk usage will show this directory clearly and you can easily find what’s eating up you space with the same usual tools as always.

Macha|1 year ago

I think they'll find they're in the minority on that opinion, so they should just set XDG_CACHE_HOME, and maybe symlink ~/.cache to ~/cache for those programs that have just hardcoded ~/.cache

mystified5016|1 year ago

Are dot folders actually a problem? I have show hidden files turned on globally everywhere always. I don't really understand how people operate otherwise.