From d81c793ebd4dcff3f72acb3dc506885ba7be1006 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 3 Sep 2024 10:26:45 +0700 Subject: [PATCH] fix nvidia module version parsing from /proc --- xpra/codecs/nvidia/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpra/codecs/nvidia/util.py b/xpra/codecs/nvidia/util.py index 65d67b8921..c0edf08e2a 100755 --- a/xpra/codecs/nvidia/util.py +++ b/xpra/codecs/nvidia/util.py @@ -151,9 +151,9 @@ def get_proc_driver_version() -> tuple: vtuple = () else: log_fn = log.debug - vtuple = bytestostr(v[p + len(KSTR):].strip().split(b" ")[0]) + vtuple = bytestostr(v[p + len(KSTR):].strip().split(b" ")[0]).split(".") log_fn(f" {NVIDIA_PROC_FILE!r} contents:") - for line in p.splitlines(): + for line in v.splitlines(): log_fn(f" {bytestostr(line)!r}") return vtuple