From 7d2b6a2cdea37f9f9fb27d7750c8fd8bde1fcbc1 Mon Sep 17 00:00:00 2001 From: PapyElGringo Date: Fri, 2 Aug 2024 23:04:16 +0200 Subject: [PATCH] Work around a dbus-broker bug with path_namespace='/' match rules --- lib/src/dbus_remote_object_manager.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/dbus_remote_object_manager.dart b/lib/src/dbus_remote_object_manager.dart index fb3d658..05cbcaa 100644 --- a/lib/src/dbus_remote_object_manager.dart +++ b/lib/src/dbus_remote_object_manager.dart @@ -53,7 +53,10 @@ class DBusRemoteObjectManager extends DBusRemoteObject { {required String name, required DBusObjectPath path}) : super(client, name: name, path: path) { var rawSignals = - DBusSignalStream(client, sender: name, pathNamespace: path); + DBusSignalStream(client, + sender: name, + /// Workaround for https://github.com/bus1/dbus-broker/issues/309 + pathNamespace: path.value != '/' ? path : null); signals = rawSignals.map((signal) { if (signal.interface == 'org.freedesktop.DBus.ObjectManager' && signal.name == 'InterfacesAdded' &&