From 27c53099f444e007d05fb63b7c4537bdb599fd35 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:50:15 +0800 Subject: [PATCH] adjust scaler checks --- koboldcpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index bd74ad164..f831af684 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4949,7 +4949,7 @@ def show_gui(): #check for wayland with fractional scale def get_problematic_scaler(): - if sys.platform != "linux" or os.environ.get("XDG_SESSION_TYPE") != "wayland": + if sys.platform != "linux": return False import xml.etree.ElementTree as ET from pathlib import Path @@ -4964,7 +4964,7 @@ def show_gui(): return False xml_path = Path.home() / ".config" / "monitors.xml" if not xml_path.exists(): #monitors.xml not found. if we have fractional scaling on gnome, just trigger the fallback - if fractional_enabled and "GNOME" in os.environ.get("XDG_CURRENT_DESKTOP"): + if fractional_enabled and "GNOME" in os.environ.get("XDG_CURRENT_DESKTOP") and os.environ.get("XDG_SESSION_TYPE") == "wayland": return True return False try: