gdbus: Work around a D-Bus bug with path_namespace='/' match rules
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 23 Oct 2013 14:07:46 +0000 (15:07 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 23 Oct 2013 14:36:23 +0000 (15:36 +0100)
commit3b28df1e008101341504f82c8e65f3109aca10cc
tree6926d40a44ab237d3f2b156dba2cc570fdbcb3a9
parent5a3fd63246d2cf7d4d8e2e559320ea0e3658beee
gdbus: Work around a D-Bus bug with path_namespace='/' match rules

D-Bus versions < 1.6.18 (i.e. all current versions) have a bug with the
path_namespace='/' match rule key. It should conceptually match everything,
but actually matches nothing. This results in no property change (or other)
signals being forwarded to the D-Bus client.

The work-around implemented in GDBusObjectManagerClient is to remove the
path_namespace match key if its value is ‘/’.

For the upstream D-Bus bug, see:
https://bugs.freedesktop.org/show_bug.cgi?id=70799

https://bugzilla.gnome.org/show_bug.cgi?id=710726
gio/gdbusobjectmanagerclient.c