Fastfetch: list available presets in exe path

For better winget support
This commit is contained in:
李通洲
2024-05-24 09:18:48 +08:00
parent 81318f45bb
commit b25e8c2721
+5
View File
@@ -265,6 +265,11 @@ static void listAvailablePresets(bool pretty)
ffStrbufAppendS(path, "fastfetch/presets/");
ffListFilesRecursively(path->chars, pretty);
}
FF_STRBUF_AUTO_DESTROY absolutePath = ffStrbufCreateCopy(&instance.state.platform.exePath);
ffStrbufSubstrBeforeLastC(&absolutePath, '/');
ffStrbufAppendS(&absolutePath, "/presets/");
ffListFilesRecursively(absolutePath.chars, pretty);
}
static void listAvailableLogos(void)