mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
Fastfetch: list available presets in exe path
For better winget support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user