Having issues when I start most graphical programs. Simply just says
Fontconfig error: Cannot load default config file
I can confirm that /etc/fonts/fonts.conf
exists and has the correct permissions.
-rw-r--r-- 1 root root 5497 Jan 16 09:55 fonts.conf
I'm not getting any other information associated with this error, and searching hasn't provided any helpful information either.
What can I do to fix this?
running gedit, geany, chromium-browser, firefox, libreoffice…
Basically any graphical program that uses fonts
EDIT
using strace
i've found the problem stems from here:
access("/data/jenkins/pms-deps-universal/BUILD_TAG/linux-ubuntu-i686/output/pms-depends-linux-ubuntu-i686-release-8400c3b/etc/fonts/fonts.conf", R_OK) = -1 ENOENT (No such file or directory)
write(2, "Fontconfig error: ", 18Fontconfig error: ) = 18
write(2, "Cannot load default config file", 31Cannot load default config file) = 31
I've never used Jenkins before, I'll try removing it and see what happens
sudo apt-get purge jenkins
This returns that jenkins is not installed…
I don't even have a /data/
partition.
How can I change the path for Fontconfig?
Best Answer
You need to set the
$FONTCONFIG_PATH
properly. Usually it is set in/etc/profile
but, if you are executing the command from a non login shell (e.g., through cron), then you need to set it explicitly by doing the following: