Skip to content

Commit

Permalink
Fix IndexError for Flatpak VKCapture extension
Browse files Browse the repository at this point in the history
`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 start with the Flatpak
identifier.
  • Loading branch information
mihawk90 committed May 23, 2024
1 parent c855fac commit db86dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db86dda

Please sign in to comment.