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

DBusProxy.addOnGSignal and Signals.connect appear to have no effect #358

Open
i-h8-github opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@i-h8-github
Copy link

Hello all,

Recently, figuring out how to connect dbus signals to my code proved quite a time sink as these two methods appear to have no effect. Consider the following:

DBusProxy dBusProxy = new DBusProxy(GBusType.SESSION, GDBusProxyFlags.NONE, null, "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop", "org.freedesktop.portal.Settings", null);

// this delegate will never fire
dBusProxy.addOnGSignal(&onGSignal); 
// this delegate will never fire
Signals.connect(dBusProxy, "g-signal", &onGSignal);
//this callback will fire
dBusProxy.getConnection().signalSubscribe(null, null, null, null, null, DBusSignalFlags.NONE, &signalCallback, data, null);
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

1 participant