Skip to content

Commit

Permalink
Terminal (Linux): don't assume blackbox is build for flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Feb 1, 2024
1 parent 128c3bf commit 9038cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detection/terminalshell/terminalshell.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ FF_MAYBE_UNUSED static bool getTerminalVersionBlackbox(FFstrbuf* exe, FFstrbuf*
})) return false;

//BlackBox version 0.14.0 (flatpak)
ffStrbufSubstrBeforeLastC(version, ' ');
ffStrbufSubstrAfterLastC(version, ' ');
ffStrbufSubstrAfterFirstS(version, "version ");
ffStrbufSubstrBeforeFirstC(version, ' ');
return version->length > 0;
}

Expand Down

0 comments on commit 9038cd3

Please sign in to comment.