TerminalShell: support Tabby terminal version detection

This commit is contained in:
李通洲
2023-05-26 15:44:54 +08:00
parent bb4bf63621
commit f4ce5c4143
@@ -300,6 +300,13 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
}
}
if (ffStrbufIgnCaseEqualS(processName, "Tabby") && !ffProcessAppendStdOut(version, (char* const[]){
exe->chars,
"--version",
NULL
}))
return true;
#ifdef _WIN32
return getFileVersion(exe->chars, version);