Closed c4llv07e closed 1 year ago
On some machines (including mine), XDG_CACHE_HOME is not set, and because of this, the program crashes. It is better to set a fallback cache directory (by default ~/.cache) for this.
XDG_CACHE_HOME
~/.cache
Does that thing work? syscache is still const char *
syscache
const char *
Yes, but now if getenv returns NULL syscache fallbacks to ~/.cache. It works on my machine and, as I think, shouldn't break anything.
getenv
NULL
On some machines (including mine),
XDG_CACHE_HOME
is not set, and because of this, the program crashes. It is better to set a fallback cache directory (by default~/.cache
) for this.