Re: Is there a way to set the cache directory using environment variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 10.08.2023 at 17:07 Jean Abou Samra wrote:

> In vanilla Fontconfig builds, you can set the XDG_CACHE_HOME variable to modify
> the cache location. 

Doesn't work. Looking at the code it seems like XDG_CACHE_HOME is only handled if
there are no cache dirs in the config:

    if (config->cacheDirs && config->cacheDirs->num == 0) { 
         prefix = FcConfigXdgCacheHome ();

The above if statement likely evaluates to FALSE for the MSYS2 build because
MSYS2 does define a cache directory but of course I don't want to use that because
it relies on the MSYS2 infrastructure...

Best regards,
 Andreas Falkenhahn                            mailto:andreas@xxxxxxxxxxxxxx

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux