Re: [PATCH] Do not remove UUID file when a scanned directory is empty
"Keith Packard" <[email protected]> Fri, 26 Oct 2018 12:35:48 -0700
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Message-ID | <[email protected]> |
Akira TAGOH <[email protected]> writes: > Removed from where? fontconfig still has it at least though. When a directory has no subdirectories or font files, we get: Create UUID file (preserving mtime) scan directory Remove UUID (updating mtime) This happens every time anyone scans the directory, so the mtime is changed at each scan. Could these UUID files be placed in the cache directory instead of the font directories? That would avoid the directory mtime problem entirely. > Resetting the mod timestamp of the directory seems not help for > AppArmor issue at least. they don't want to see the file > creatioin/removal at the runtime. That makes sense -- random applications should not be writing to font directories. If the UUID files need to live in the font directories, they should only be created by fc-cache. I would argue that they should not be removed for empty directories; the presence of the UUID file should be the signal that fc-cache has scanned a directory; removing it for empty directories makes this signal ambiguous. -- -keith _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlvTbJUACgkQ2yIaaQAA ABHiXg/+PM5o/hhsKbM5sF31UVOd+d9hI4Xp6CcSpqM5Kot6xYB+QDBQgiEmLjLU o8qYMzSDWFd1nYEDtwKTrHt2disebU57SUZEk2ripSJzvKk5eJtRK5pVV+cSqzQa VzMDPKRfLCV0+pdrydEB5+MZ/fBjBgeepefIhLtGXJMInJ/R9FR9u/LnlVgSIJap 2KoJm7YhMUKgS7k2oQPJdVjidB7w/WbJP82d2D+d8J6VwKINcolDZ4Y6VC0lhNY4 aUUB5OzagyHzLdqCcGVdn5k/x8UGJYyopl+NatxHCB//jxQ9jXM3fY4SAI5io0U/ TfZpWxZ/9u1/TdCHzbJUpnkk77P2zYyUEirOuJVFxd9rPDPUeQ6tNIkk7+erOr/u pHenhxrDk98nWL0ZAwgzqpF5mz01jiAI5A0OSI88CaiJEVWYVu430vWFYRJXWeA+ ReS94bk7vv1+lcbcHWgR4HFbmrWEiu+mEBf2Eoa8pWiu6PPGT1M1MBCvDSFGYOJo ROvaSKNa6ZDqwc1mQW6vB8WYfpJ/slcLp9o3BNeUVI/h98dUBNv5HMcO6AmIEUFD GRYhJVZ9hfN1mERlunssWvrBiAFFyihcn+K+eXyy0lXJJ9LbWP1nViJUFtyBxmH6 wC2+UPjfJyH9Kh21EcY8pZwiTp7jKsFI8Mao9Q41xTDi08Lfyr0= =AAcx -----END PGP SIGNATURE-----