mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
Add tolerance for extra lines in glxinfo output; there can be errors in there.
Resolves #5202
This commit is contained in:
parent
8b92dc0243
commit
e104910486
|
@ -40,7 +40,8 @@ class GlxInfo:
|
|||
# combining display and screen)
|
||||
output = self._output.replace(" screen", "\nscreen")
|
||||
for line in output.split("\n"):
|
||||
if not line.strip():
|
||||
# Skip blank lines, and error lines that may contain no ':'
|
||||
if ":" not in line:
|
||||
continue
|
||||
|
||||
key, value = line.split(":", 1)
|
||||
|
|
Loading…
Reference in a new issue