Terminal (Linux): don't assume blackbox is build for flatpak

This commit is contained in:
李通洲
2024-02-01 09:14:06 +08:00
parent 128c3bfea6
commit 9038cd32b2
+2 -2
View File
@@ -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;
}