TerminalShel (Windows): detect Tabby version with exe file version

This commit is contained in:
李通洲
2023-05-27 21:25:32 +08:00
committed by Carter Li
parent bb6cdc7bb0
commit 7310b3ed09
+7 -7
View File
@@ -279,6 +279,13 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
if(ffStrbufIgnCaseEqualS(processName, "kitty"))
return getExeVersionGeneral(exe, version); //kitty 0.21.2 created by Kovid Goyal
if (ffStrbufIgnCaseEqualS(processName, "Tabby") && !ffProcessAppendStdOut(version, (char* const[]){
exe->chars,
"--version",
NULL
}))
return true;
#endif
if(ffStrbufStartsWithIgnCaseS(processName, "alacritty"))
@@ -300,13 +307,6 @@ 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);