Open oldaccountdeadname opened 3 years ago
Hi all.
I confirm @oldaccountdeadname report. I could volunteer to:
/_examples/eavesdrop.go
with an example that uses BecomeMonitor
(and works on eavesdropping notifications, that is an interesting case)BecomeMonitor
method for Conn
Let me know if there is interest in this, cc @guelfey @jsouthworth
In the dbus specification, it looks like eavesdropping was deprecated in v0.31:
I believe this means that at the very least,
/_examples/eavesdrop.go
is out of date, and potentially the underlyingConn.Eavesdrop
method as well.The example did not work for certain rules, particularly when I was attempting to monitor notifications with
interface='org.freedesktop.Notifications'
, but did work forconn.BusObject.Call("org.freedesktop.DBus.Monitoring.BecomeMonitor, 0, <rules>, uint(0))
.Hopefully everything above is correct: I'm new to dbus and just learning Go. It's possible that everything above is completely incorrect, in which case sorry for the extraneous issue! Thanks!