From 81318f45bb355b4fea769fe90f4b60fba219fff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 24 May 2024 09:09:12 +0800 Subject: [PATCH] Fastfetch: don't detect `.conf` in `--list-config-paths` --- src/fastfetch.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index cfe2d6185..d8da34041 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -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 ? " (*)" : ""); }