From 44dffd8fb7ca698e643c8407da2b472dd2f45bf8 Mon Sep 17 00:00:00 2001 From: Tarulia Date: Thu, 23 May 2024 02:38:00 +0200 Subject: [PATCH] core: Fix version detection with Flatpak VKCapture `getOBSVersionLine()` was finding: `: - com.obsproject.Studio.Plugin.OBSVkCapture` for users with this extension, therefore `getOBSVersionString()` ran into an IndexError on splitting the (invalid) `versionString`. Therefore filtering out any lines that contain the Flatpak identifier. --- checks/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checks/core.py b/checks/core.py index 662166a..e71b8ca 100644 --- a/checks/core.py +++ b/checks/core.py @@ -51,7 +51,8 @@ def getOBSVersionLine(lines): 'already running', 'multiple instances', 'windows from screen capture', - 'Lenovo Vantage / Legion Edge is installed') + 'Lenovo Vantage / Legion Edge is installed', + 'com.obsproject') for line in versionLines: if not any(wrongLine in line for wrongLine in wrongLines): return line