Cleaning of $XDG_CACHE_HOME and $XDG_CACHE_HOME/thumbnails

Benjamin Berg benjamin at
Thu Feb 27 08:42:57 UTC 2020

On Wed, 2020-02-26 at 19:41 +0000, Simon McVittie wrote:
> However, `systemd-tmpfiles --user` can be invoked as an
> ordinary user, unprivileged, to look at various paths including
> ~/.config/user-tmpfiles.d/*.conf (which is the highest-precedence) and
> create/clean per-user directories. I think the suggestion is that desktop
> environments like GNOME should periodically run `systemd-tmpfiles --user`,
> or a compatible reimplementation, as a way to clean per-user cached files.

Yes. And if you have pam_systemd, then we already have this scheduled
job running today. So this is already working out of the box, all we
need is some fall-back mechanism for the non-systemd case.

Even that fallback should be simple in principle. i.e. extract the
systemd-tmpfiles code (or use the opentmpfiles script) and create a
small scheduler that is started using an XDG desktop file in the
autostart directory.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the xdg mailing list