Skip to content

Commit 7310b3e

Browse files
committed
TerminalShel (Windows): detect Tabby version with exe file version
1 parent bb6cdc7 commit 7310b3e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/detection/terminalshell/terminalshell.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
279279
if(ffStrbufIgnCaseEqualS(processName, "kitty"))
280280
return getExeVersionGeneral(exe, version); //kitty 0.21.2 created by Kovid Goyal
281281

282+
if (ffStrbufIgnCaseEqualS(processName, "Tabby") && !ffProcessAppendStdOut(version, (char* const[]){
283+
exe->chars,
284+
"--version",
285+
NULL
286+
}))
287+
return true;
288+
282289
#endif
283290

284291
if(ffStrbufStartsWithIgnCaseS(processName, "alacritty"))
@@ -300,13 +307,6 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
300307
}
301308
}
302309

303-
if (ffStrbufIgnCaseEqualS(processName, "Tabby") && !ffProcessAppendStdOut(version, (char* const[]){
304-
exe->chars,
305-
"--version",
306-
NULL
307-
}))
308-
return true;
309-
310310
#ifdef _WIN32
311311

312312
return getFileVersion(exe->chars, version);

0 commit comments

Comments
 (0)