Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  26] [ 0]  / answers: 1 / hits: 82164  / 2 Years ago, sun, april 17, 2022, 7:43:48

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?


More From » 14.04

 Answers
0

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:



export FONTCONFIG_PATH=/etc/fonts

[#24272] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
byishted

Total Points: 469
Total Questions: 113
Total Answers: 113

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
;