dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

A way to bypass property caching? #231

Closed zeenix closed 1 year ago

zeenix commented 2 years ago

In GitLab by @MaxVerevkin on Nov 14, 2021, 15:22

The book says:

By default, the proxy will cache the properties and watch for changes.

So, how do I disable this default behavior? I'm trying to work with KDEConnect DBus API, and for some reason, as far as I understand, it doesn't use the standard properties interface and instead provides it's own "..Changed" signals.

zeenix commented 2 years ago

In GitLab by @MaxVerevkin on Nov 14, 2021, 15:33

Never mind, there is a cache_properties() function on proxy builder.

zeenix commented 2 years ago

Never mind, there is a cache_properties() function on proxy builder.

I'm right now working on API to have even more control over this.