From 9b67c9adad17cf6cb73dec50f8b65478e2259144 Mon Sep 17 00:00:00 2001 From: prgmitchell <86465454+prgmitchell@users.noreply.github.com> Date: Fri, 23 Oct 2026 20:37:17 -0400 Subject: [PATCH] linux: Strip quotes from distribution names Remove distro quotes before HTML escaping and remove Ubuntu specific escaping exception. --- checks/linux.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/checks/linux.py b/checks/linux.py index 4d68dfb..016e659 100644 --- a/checks/linux.py +++ b/checks/linux.py @@ -44,13 +44,6 @@ def isX11(lines): return True -def isUbuntu2004(line): - if any(distro in line for distro in ['"Ubuntu" "20.04"', html.escape('"Ubuntu" "20.04"')]): - return True - else: - return False - - def checkDistro(lines): """The distro log line is escaped before adding to the returned list. Take care when comparing against this value.""" isDistroNix = search('Distribution:', lines) @@ -60,7 +53,7 @@ def checkDistro(lines): distro = isDistroNix[0].split() distro = distro[2:] - distro = ' '.join(distro) + distro = ' '.join(distro).replace('"', '') distroHelp = '' # this is logged when the file can't be found at all @@ -100,7 +93,7 @@ def checkWayland(lines): return isDistroNix = checkDistro(lines) - if isDistroNix and isUbuntu2004(isDistroNix[1]): + if isDistroNix and isDistroNix[1] == 'Ubuntu 20.04': return [LEVEL_CRITICAL, "Ubuntu 20.04 under Wayland", "Ubuntu 20.04 does not provide the needed dependencies for OBS to capture under Wayland.
Capture will only function under X11/Xorg."]