]> git.wh0rd.org - fontconfig.git/commit
Warn (and recover) from config file without <cachedir> elements.
authorKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 20:14:49 +0000 (12:14 -0800)
committerKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 20:14:49 +0000 (12:14 -0800)
commit64d7e303df441f274ee194a401dcd14dfb58af7e
treee85a21045b53b0d95bdffa5763217f959270a3dd
parent253ec7609c13b46c717c801206ebb1a6c7f06e27
Warn (and recover) from config file without <cachedir> elements.

When updating from older fontconfig versions, if the config file
is not replaced, it will not contain <cachedir> elements. Lacking these,
fontconfig has no place to store cached font information and cannot operate
reasonably.

Add code to check and see if the loaded configuration has no cache
directories, and if so, warn the user and add both the default system cache
directory and the normal per-user cache directory.
src/fcinit.c