From cd6e087eeb11b1fab92a4f12703830fd60736bcc Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:06:21 +0800 Subject: [PATCH] include kde in the fractional scaling fix --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 0ac9eb44e..969ea2664 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -5253,7 +5253,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") and os.environ.get("XDG_SESSION_TYPE") == "wayland": + if fractional_enabled and ("GNOME" in os.environ.get("XDG_CURRENT_DESKTOP") or "KDE" in os.environ.get("XDG_CURRENT_DESKTOP")) and os.environ.get("XDG_SESSION_TYPE") == "wayland": return True return False try: