[Fontconfig] [PATCH] Do not remove UUID file when a scanned directory is empty

Nicolas Mailhot nicolas.mailhot at laposte.net
Sat Oct 27 08:17:31 UTC 2018

Le vendredi 26 octobre 2018 à 12:35 -0700, Keith Packard a écrit :
> Akira TAGOH <akira at tagoh.org> 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.

It would also be a lot cleaner FHS-side.

For many setups, fonts (and the directories they reside in) are read-
only resources, having fontconfig write to those is bound to break
someone’s deployment process.


Nicolas Mailhot

More information about the Fontconfig mailing list