From aea123b2f588a3fc3f2cf9cc58ece9663d58ff4c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 22 Jul 2026 10:27:44 +0545 Subject: [PATCH] fix(globalmenu): downgrade D-Bus introspect timeout to debug - Timeouts are expected for services without introspection support - _dbus_get_pid and _dbus_introspect now log at debug level - Cache already stores empty results; invalidation on service appear causes retries which is correct behavior --- src/window/globalmenu/service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/window/globalmenu/service.py b/src/window/globalmenu/service.py index ef6c7c0..40df588 100644 --- a/src/window/globalmenu/service.py +++ b/src/window/globalmenu/service.py @@ -110,8 +110,8 @@ def _dbus_introspect(bus, service: str, path: str, timeout: int) -> str: ) return res.get_child_value(0).get_string() if res else "" except Exception as e: - logger.warning( - f"[service] res = bus.call_sync( service, path, 'org.freedesktop.DBus... failed: {e}" + logger.debug( + f"[service] introspect {service}:{path} failed: {e}" ) return "" @@ -131,8 +131,8 @@ def _dbus_get_pid(bus, service: str, timeout: int) -> int: ) return res.get_child_value(0).get_uint32() if res else 0 except Exception as e: - logger.warning( - f"[service] res = bus.call_sync( 'org.freedesktop.DBus', '/org/freede... failed: {e}" + logger.debug( + f"[service] GetConnectionUnixProcessID for {service} failed: {e}" ) return 0