Skip to content

Commit 6d659cc

Browse files
mihawk90RytoEX
authored andcommitted
core: Fix version detection with Flatpak VKCapture
`getOBSVersionLine()` was finding: `<timestamp>: - 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.
1 parent c855fac commit 6d659cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

checks/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def getOBSVersionLine(lines):
5151
'already running',
5252
'multiple instances',
5353
'windows from screen capture',
54-
'Lenovo Vantage / Legion Edge is installed')
54+
'Lenovo Vantage / Legion Edge is installed',
55+
'com.obsproject')
5556
for line in versionLines:
5657
if not any(wrongLine in line for wrongLine in wrongLines):
5758
return line

0 commit comments

Comments
 (0)