Fastfetch: don't detect .conf in --list-config-paths

This commit is contained in:
李通洲
2024-05-24 09:09:12 +08:00
parent 2f6cabb839
commit 81318f45bb
-6
View File
@@ -284,12 +284,6 @@ static void listConfigPaths(void)
uint32_t length = folder->length + (uint32_t) strlen("fastfetch") + 1 /* trailing slash */;
ffStrbufAppendS(folder, "fastfetch/config.jsonc");
exists = ffPathExists(folder->chars, FF_PATHTYPE_FILE);
if (!exists)
{
ffStrbufSubstrBefore(folder, folder->length - (uint32_t) strlen("jsonc"));
ffStrbufAppendS(folder, "conf");
exists = ffPathExists(folder->chars, FF_PATHTYPE_FILE);
}
ffStrbufSubstrBefore(folder, length);
printf("%s%s\n", folder->chars, exists ? " (*)" : "");
}