mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
Fastfetch: don't detect .conf in --list-config-paths
This commit is contained in:
@@ -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 ? " (*)" : "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user