mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
Image: Use correct cache dir
This commit is contained in:
@@ -694,7 +694,7 @@ static bool printImageIfExistsSlowPath(FFinstance* instance, FFLogoType type, bo
|
||||
|
||||
ffStrbufInit(&requestData.cacheDir);
|
||||
ffStrbufAppend(&requestData.cacheDir, &instance->state.platform.cacheDir);
|
||||
ffStrbufAppendS(&requestData.cacheDir, "fastfetch");
|
||||
ffStrbufAppendS(&requestData.cacheDir, "fastfetch/images");
|
||||
|
||||
ffStrbufEnsureFree(&requestData.cacheDir, PATH_MAX);
|
||||
if(realpath(instance->config.logo.source.chars, requestData.cacheDir.chars + requestData.cacheDir.length) == NULL)
|
||||
|
||||
@@ -29,8 +29,6 @@ static void getCacheDir(FFPlatform* platform)
|
||||
ffStrbufAppend(&platform->cacheDir, &platform->homeDir);
|
||||
ffStrbufAppendS(&platform->cacheDir, ".cache/");
|
||||
}
|
||||
|
||||
ffStrbufAppendS(&platform->cacheDir, "fastfetch/");
|
||||
}
|
||||
|
||||
static void getConfigDirs(FFPlatform* platform)
|
||||
|
||||
@@ -33,8 +33,6 @@ static void getCacheDir(FFPlatform* platform)
|
||||
ffStrbufAppendS(&platform->cacheDir, "AppData/Local/");
|
||||
}
|
||||
CoTaskMemFree(pPath);
|
||||
|
||||
ffStrbufAppendS(&platform->cacheDir, "fastfetch/");
|
||||
}
|
||||
|
||||
static void platformPathAddKnownFolder(FFlist* dirs, REFKNOWNFOLDERID folderId)
|
||||
|
||||
Reference in New Issue
Block a user