Fontconfig crashes if HOME variable is not set (it can be the case when using usermode to get root access).. The attached patch fixes this problem and only relies on $HOME variable presence when getpwuid doesn't give any info (this is the glib2 way..)
Created attachment 16 [details] [review] Patch to use $HOME only as fallback
I would prefer to use $HOME and fall back to getpwuid only if that's not set, or perhaps if the application is setuid. getpwuid seems a bit expensive to use in every application.
I don't have any strong feelings for any approaches.. Since I didn't knew which one was better, I choose the glib2 way
I've made a minimal patch that solves the immediate problem.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.