Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eavesdrop is deprecated #253

Open
oldaccountdeadname opened this issue Aug 1, 2021 · 1 comment
Open

Eavesdrop is deprecated #253

oldaccountdeadname opened this issue Aug 1, 2021 · 1 comment

Comments

@oldaccountdeadname
Copy link

In the dbus specification, it looks like eavesdropping was deprecated in v0.31:

Formally deprecate eavesdropping in favor of BecomeMonitor

I believe this means that at the very least, /_examples/eavesdrop.go is out of date, and potentially the underlying Conn.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 for conn.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!

@leophys
Copy link

leophys commented Mar 10, 2024

Hi all.

I confirm @oldaccountdeadname report. I could volunteer to:

  • update /_examples/eavesdrop.go with an example that uses BecomeMonitor (and works on eavesdropping notifications, that is an interesting case)
  • implement a BecomeMonitor method for Conn

Let me know if there is interest in this, cc @guelfey @jsouthworth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants