You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: