Fastfetch: print non-colored logo in pipe mode

This commit is contained in:
李通洲
2024-05-05 20:01:12 +08:00
parent 865f57bd76
commit 5ea89ecba5
3 changed files with 30 additions and 14 deletions
+7
View File
@@ -842,6 +842,13 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
bool ffLogoPrintImageIfExists(FFLogoType type, bool printError)
{
if(instance.config.display.pipe)
{
if(printError)
fputs("Logo: Image logo is not supported in pipe mode\n", stderr);
return false;
}
if(!ffPathExists(instance.config.logo.source.chars, FF_PATHTYPE_FILE))
{
if(printError)