Cleaning of $XDG_CACHE_HOME and $XDG_CACHE_HOME/thumbnails
hadess at hadess.net
Wed Feb 26 14:26:05 UTC 2020
On Wed, 2020-02-26 at 15:24 +0100, Benjamin Berg wrote:
> On Wed, 2020-02-26 at 15:14 +0100, Bastien Nocera wrote:
> > Flatpak'ed applications also use a different cache directory, like:
> > $ export | grep CACHE
> > declare -x XDG_CACHE_HOME="/home/hadess/.var/app/<app-id>/cache"
> > I'd say that it might better left well alone, and have something
> > like
> > Baobab better signal what each directory is/which application it
> > belongs to, to clean it up.
> This specification change would only affect the $XDG_CACHE_HOME as
> at login time by pam_systemd (i.e. ~/.cache).
> So in principle, Flatpak'ed applications are not affected at all.
> However, the logical extension of this proposal would be that
> appropriate configurations are shipped inside each Flatpak. Then we
> also have a cleanup mechanism there that does not depend on the
> application to be run regularly.
> I had not thought about that yet. I could imagine Flatpak collecting
> the information and doing the simple re-write and dropping it into
> ~/.config/tmpfiles.d or $XDG_RUNTIME_DIR/tmpfiles.d at login time.
> Flatpak itself could again ship a default to clean .var/app/*/cache
In this case, an opt-in would be less surprising than an opt-out.
More information about the xdg