Re: Cleaning of $XDG_CACHE_HOME and $XDG_CACHE_HOME/thumbnails

Bardot Jérôme <[email protected]>
Newsgroups gmane.linux.xdg.devel
Message-ID <[email protected]>
On 26/02/2020 14:30, Benjamin Berg wrote:
> On Wed, 2020-02-26 at 14:22 +0100, Bastien Nocera wrote:
>> On Wed, 2020-02-26 at 13:45 +0100, Benjamin Berg wrote:
>>> Now, systemd-tempfiles can already clean up everything except for the
>>> trash. And considering that $XDG_CACHE_HOME is non-essential by
>>> definition, I think it might be sane to use systemd-tempfiles not only
>>> to clean the thumbnails but the entirety of $XDG_CACHE_HOME in the
>>> future.
>>
>> It's not "non-essential", it's a cache, which can be regenerated, but
>> it might be utterly costly to do so. Eg. there are 10 gigs of "cached"
>> evolution mails in my ~/.cache, 5 gigs of jhbuild builddirs.
>>
>> Nuking it is a last ditch scenario. You'd avoid backing it up on space
>> constrained storage, but you'd want to avoid having to regenerate that
>> cache in most cases.
> 
> I am *not* proposing to nuke these directories. I am proposing to nuke
> them by default, and ask applications like evolution, jhbuild and
> others to ship their own configuration.
> 

I’m not sure a destructive by default behavior is a good thing even on
a cache directories.

I’m pretty sure this will lead to a lost of data.

> This matches the behaviour of /tmp and /var/tmp on systemd managed
> systems. In the simplest case, all evolution needs to do is ship a one
> line file with:
> 
> x     %C/evolution
> 
> This file can even be installed to the users $XDG_CONFIG_DIR for
> applications that might not be able to do it globally.
> 
Not all GNU/linux comes with systemd. Protocol and specification over
tools/implementation specific. If it come restrictive it’s not good.
Exept for security stuff and even in this case it’s not always a good
choice. (for ie : 2fa when only choice is a phone)

>> <snip>
>>> Is it reasonable to standardise on the systemd tmpfiles.d format?
>>> Is it OK to clean $XDG_CACHE_HOME after a fixed time period by
>>> default?
>>
>> I'm guessing that's a no.
>>
>> As for thumbnails, you'd probably get away with checking whether atime
>> is actually set on that mount and cleaning up the ones that haven't
>> been used.
> 
> Benjamin
> 
> 
> _______________________________________________
> xdg mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/xdg
>

_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
0x053A41EF03878A98.asc (application/pgp-keys, 3 KB)
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFXeS68BEACtWxp83zKXXtjOePuX68vb88H4adusnmWXi2YfH3iEhf/AX4bJ
26hm4z6SBkckXfaof2ykTCtin1vI+KYnd/kLE7WIZTvYWQad8QRK2lsjDQwiQpBu
gDmUkTkVfmKTjOA2NvQO28s8oXo3P4MTHcbz0eLMROHp3zugOtoLDvfSIbb2LljU
Ku4EymxUnVpfnvm/w0jagwnwgmPJzZjf0cGsWHkVPpaVIL+ti1uJWKSQPTHY7ZHh
He2CCqwfKii3zgH3ydtN9T0i1t0bJbFZMLY4WQ6aKHkJ6IjfcowTII5zsUdiTPMx
EvzYdvBP7zY1BC2dCOAfO+O0m6y9X0MOIl1euPDfeCNv33QzKRyLy1k8ZEuVgwhR
Udx8N1mNLXU3KfCbprwmP2LdPZdX71Vv55REBFlnrkiOW4vJdJ5gHCVymmFgrcCt
PBlM73bi1O+mtL5R6Sqdq4tR68mD0hB5dFXhuD4gW0XC8VRMH799lGEEk5nC7t6J
8AasAk/KIaj6dPeCb4mBZs1eUhHKAPODQnyKxV5wCybrfSHDlCLERsl3G/bTHPta
jg0sIpSnuTTk/RdbDPNmyYQch6/rJW7DmHnkKfWFOq1ra6V4Gn8UTZLLnW219mov
qHtxuKJXyphnMkWENHeBtXebBhGNEwHR4TvWT7uHLemMO6h4KgFawz5gmQARAQAB
tClCYXJkb3QgSsOpcsO0bWUgPGJhcmRvdC5qZXJvbWVAZ21haWwuY29tPokCPwQT
AQgAKQUCVd5LrwIbIwUJCWYBgAcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJ
EAU6Qe8Dh4qYwXkP/RCtOfejJLC/U+BTW8ExLh4cQ8g/D4bkWuGJgxOcalW5Afp7
Sj1GzwdNGG90ziaArcjtWLvHqDukxM6CuDswBhdJEYIDGtCY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KNfCRB/TL871CtRCxlNHyLP1DfB6GHbFJF9C++XQTLfoiqYBQ
znOz+ym+TfNKZ4dSOJHFvb1znhnIO0HEG1Q4hppDIAajTAjEe02h1eTwr1uRzI+i
rU7kHMf7BE6u5C81XP+k34chY0yYBtrT4X0qkcRa4nmCtfvnNEnrcNz0/rywKoch
odJ8mxh1eMIHDiIHgCsFUfIqfXjC7dC6nlQiOPsckzDAxN40+iRNyQARAQABiQIl
BBgBCAAPBQJV3kuvAhsMBQkJZgGAAAoJEAU6Qe8Dh4qY1aEP/3+Y3J6q0IhLE4yW
8xdzXVjTzzFiOldNwiFlqkvgR1Gk1p/ZcqJKIMaJce19A062+OIrmBivclref+6V
Vp9UYq3hVA7odwq5mEcCZtwZXEFtcbYUvjInq3wgSRfD+JGOiptyFn5ie+ahvsTY
n1S3zayie55IhNshW6u1VI/EDbWGD/B6rD1bUjI+G0r5c2AeQeHePOx5yvwzo/mU
aSxtmAvEWUw0RIkE3d0/t3AEKIkNprMiS2FAAjHD0rn8sgcDMUZOi93TR/qwsRAf
sbz1OzK9w3Ay+NGk9gEHPLQx9uMwsPYtejvP4aQv514coOvias0s5Oar46u8soum
xRSiUfsW2GheU47/1KFcemJNJMgqj96KDEH0VQmTi3mTDOr46KHALw4Q0Cc5ApkP
vWBeEKG8hojloML/bEHBMiBK43832rEX2XPNvgLphtOfh3oHLPYb8x1KO7n7sFZ3
57NLC03Zj3FhdxcalB5ouMp/+9rHIRt8Yi7cjxi4mx0AITw7H3ShqL8zJTSC0c6k
zQioVGU8uqjw5ww+/KgmUGnYpaXL5GShmplkObL/L5hoGn3ZOxuwa9/1anoLuchZ
s59IeTbIcuiGv2ONqTWopeH2wHEygFtsJzlwGFD5S4UwyZOvyAaxf56a2FTpouzp
4x+8kTaaRGAwfnz5ZVdpc9B3rIdN
=/0mo
-----END PGP PUBLIC KEY BLOCK-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.