27 ms·
XDG_CACHE_HOME, as mentioned by numerous other posters, is a good remedy to deal with this kind of cached-artifacts-sprawl - but it does need a will to cooperat
by c0l0 2y ago
XDG_CACHE_HOME, as mentioned by numerous other posters, is a good remedy to deal with this kind of cached-artifacts-sprawl - but it does need a will to cooperate and care from the original software developer in the first place, which ain't a given.
So does another standard that I've come to appreciate in all software that supports it: CACHEDIR.TAG (https://github.com/LineageOS/charter/blob/main/device-support-requirements.md https://github.com/LineageOS/charter/blob/main/device-suppor...) - I'm just here to spread the word! ;)
- c0l0 2y agoDammit, my clipboard manager messed up the link I was about to post, and now it's too late to edit :/ For posterity: https://bford.info/cachedir/ https://bford.info/cachedir/ is what I was meant to link to above. Sorry for the inconvenience.
- codetrotter 2y agoI went on GitHub to see if anyone was using this cachedir tag signature. Found many results so that’s cool :) But ironically, if I’m reading correctly the command line ncurses based disk usage tool ncdu seems like it will intentionally ignore any directory that has this cachedir tag. https://github.com/rofl0r/ncdu/blob/a216bc2d35b6edf4dadf55350f09d7cbf229fbf7/src/exclude.c#L108 https://github.com/rofl0r/ncdu/blob/a216bc2d35b6edf4dadf5535... https://github.com/rofl0r/ncdu/blob/a216bc2d35b6edf4dadf55350f09d7cbf229fbf7/src/dir_scan.c#L302 https://github.com/rofl0r/ncdu/blob/a216bc2d35b6edf4dadf5535... Which is the very sort of thing the original post was complaining about that happens with invisible .cache directories too :^)