Skip to content

Commit

Permalink
Terminal: add fast path of mate-terminal version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Sep 7, 2024
1 parent d8fb8d4 commit f8c58a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/detection/terminalshell/terminalshell.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ FF_MAYBE_UNUSED static bool getTerminalVersionFoot(FFstrbuf* exe, FFstrbuf* vers

FF_MAYBE_UNUSED static bool getTerminalVersionMateTerminal(FFstrbuf* exe, FFstrbuf* version)
{
ffBinaryExtractStrings(exe->chars, extractGeneralVersion, version, (uint32_t) strlen("0.0.0"));
if (version->length > 0) return true;

if(!getExeVersionRaw(exe, version)) return false;

//MATE Terminal 1.26.1
Expand Down

0 comments on commit f8c58a9

Please sign in to comment.