From a0fdabd81f1ebf9085c372c36d5fbe6e5a12b845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Thu, 23 Jul 2026 01:42:41 +0300 Subject: [PATCH] fix: suppress harmless Qt portal registration warning on Linux --- abogen/pyqt/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/abogen/pyqt/main.py b/abogen/pyqt/main.py index 8371899..437068a 100644 --- a/abogen/pyqt/main.py +++ b/abogen/pyqt/main.py @@ -120,6 +120,8 @@ def qt_message_handler(mode, context, message): return # Suppress this specific message if "setGrabPopup called with a parent, QtWaylandClient" in message: return + if "Failed to register with host portal" in message: + return if mode == QtMsgType.QtWarningMsg: print(f"Qt Warning: {message}")