From d2f786849c0c4503360a5c09469505b05164c6d2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 27 Aug 2006 17:04:01 -0700 Subject: [PATCH] Write caches to first directory with permission. Valid cache in FcDirCacheOpen. Previous policy was to attempt to update the cache in place and bail if that didn't work. Now, search for the first writable directory and place the cache file there instead. Furthermore, on startup, search directory list for valid cache files instead of bailing if the first found cache file wasn't valid. --- fonts.conf.in | 2 +- src/fccache.c | 90 ++++++++++++++++++++++++--------------------------- 2 files changed, 43 insertions(+), 49 deletions(-) diff --git a/fonts.conf.in b/fonts.conf.in index 035ee32..0629c80 100644 --- a/fonts.conf.in +++ b/fonts.conf.in @@ -30,7 +30,7 @@ @FC_CACHEDIR@ - ~/.fonts/fontconfig + ~/.fontconfig