From 9038cd32b2798fd76f5798162660434296990447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 1 Feb 2024 09:14:06 +0800 Subject: [PATCH] Terminal (Linux): don't assume blackbox is build for flatpak --- src/detection/terminalshell/terminalshell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/terminalshell/terminalshell.c b/src/detection/terminalshell/terminalshell.c index ed2912118..be83accd5 100644 --- a/src/detection/terminalshell/terminalshell.c +++ b/src/detection/terminalshell/terminalshell.c @@ -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; }