Enable GVariant supprt? #365
-
I am using the generated code for a method that expects a variant. It turns out, the exact signature is:
where the receiving side (IBus) expects at least one element in the last
Here is a more detailed description of the format in case my words are not descriptive. My implementation is here. The problem is, the other side doesn't recognize it. But not all calls to IBus fails. This time I did read the book. I feel it's because IBus uses GVariant and zvariant by default doesn't use it. I went through code for zvariant and it seems I can enable this feature by zbus = { version = "3.13.1", default-features = false, features = ["tokio", "gvariant"] }
zvariant = { version = "3.14.0", features = ["gvariant"] } But given that IBus still doesn't recognize the payload, I think either I didn't enable GVariant correctly or my theory isn't correct. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
GVariant has nothing to do with Variant type. The types GVariant is an incompatible format to dbus and none of the existing bus implementations support it so you can only use that in p2p connections. |
Beta Was this translation helpful? Give feedback.
-
Our book says:
|
Beta Was this translation helpful? Give feedback.
GVariant has nothing to do with Variant type. The types
zbus::zvariant::{Value, OwnedValue}
are what you're looking for.GVariant is an incompatible format to dbus and none of the existing bus implementations support it so you can only use that in p2p connections.