FcConfigHome(3)
π FcConfigHome(3) β your girl's guide to finding out where home is at π β¨
okay so real talk, this one's a tiny little fontconfig baddie and she's in section 3 of the manual, FcConfigHome(3) if you're keeping track, and honestly? she's short, she's sweet, she ate π
πΈ NAME πΈ
FcConfigHome β returns the current home directory. that's it. that's the whole gig. no cap π
β¨ SYNOPSIS β¨
#include <fontconfig/fontconfig.h>
FcChar8 * FcConfigHome (void);
look at her π₯Ή no arguments, takes nothing, gives everything (well, gives you a pointer, which might be NULL, more on that in a sec bestie)
π¦ DESCRIPTION π¦
so here's the tea β β FcConfigHome returns the current user's home directory, if it's available, and if using it is enabled. two vibe checks have to pass, basically:
- is the home directory actually available? β
- is using it enabled? β
if both of those are yes, you get the home directory. slay π
and if not? it returns NULL. π yep. NULL. so like, please check before you dereference, i'm literally begging π«Ά
π¨ also peep: it saysNULLotherwise, meaning anything that isn't "available AND enabled" =NULL. don't assume you're getting a path just because you asked nicely.
ooh and also β see also FcConfigEnableHome π (that's the one that handles the "is using it enabled" part of the equation, iykyk π). the original page has a lil stray ) hanging out at the end of that reference β she's iconic, we keep her, no notes π
π a lil sign-off π
this page came from Fontconfig 2.17.0, dated 27 June 2025 β so like, if you're reading this in your terminal, that's the version and the date, periodt π β¨ go forth and find your home directory, bestie π π
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms