Re: Cleaning of $XDG_CACHE_HOME and $XDG_CACHE_HOME/thumbnails
Benjamin Berg <[email protected]>
| Newsgroups | gmane.linux.xdg.devel |
|---|---|
| Message-ID | <[email protected]> |
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. Benjamin _______________________________________________ xdg mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/xdg
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEED2NO4vMS33W8E4AFq6ZWhpmFY3AFAl5XgREACgkQq6ZWhpmF Y3AJww/+LIE3H1ai1NeGNkkp+3ThtE1ZiKYDrS+URFlsx97j3R2Mu/ZjqOcPlESs NguHwUkMoRsvL8q3eh7+HMWLAeyX384ju0Lr2fQH8VqkTD5fGKbLHXIJht8qhAsW puGeE9JQc4WiX4EFcBh4X3DVCIzxTP4J3V8K6eoOfhM5O5fl9W4gvXV2OylhuMrB /9vz7ZfIsnKH/+tnkOEEVBKjPfz9XOE6u/DG0pzAJtiUMoF+1cAqYFBJAEYwIO1Y 1T/4kHEV7fECcecNZnef1r5EMr5vosvGcw4RIBm/XucbqGecx0fSLMuCeBRd8reu ac5Z5rme2QWKY9FNg1CPrtbav6LCGO5aixvlgDa+02g+mUL5M/URJ1VrqJfC/0C+ q+LE0njbpANu+mAAgzjoYNCPIv9EP6P1k6QONTIuSU2/yvM4brni4nWpikUqB7iV WlOPtv2VQYEO1I4qaXfHiY6uvSQbNjELZx6obD34sYgJanK8a8LHGbI04l+QQFfh ZOVbbnz40ILAfIh2883Hl2+aEksGsoy4viiacg6Lz4h6mR+itPbzH6YSds7LWpHD vcqGQ+YQzYVF3IdlJpKkpowWkSPXf8CvyRMVf2m9rY2tYvfdKvaS4N5og5cs0Ejo Ids9K0uCWIhBMt9uzEr2u+3vO1bbWHx6yXYYDDfSwJsyzkFKu/M= =eWN1 -----END PGP SIGNATURE-----