Add tolerance for extra lines in glxinfo output; there can be errors in there.

Resolves #5202
This commit is contained in:
Daniel Johnson 2023-12-25 18:40:08 -05:00
parent 8b92dc0243
commit e104910486

View file

@ -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)