Skip to content

Commit

Permalink
Work around a dbus-broker bug with path_namespace='/' match rules
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyElGringo committed Aug 2, 2024
1 parent 5aef6f5 commit 7d2b6a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/dbus_remote_object_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down

0 comments on commit 7d2b6a2

Please sign in to comment.