-
Hello everyone. I am trying to get file copying progress from "com.canonical.Unity.LauncherEntry.Update". Str(
"application://org.kde.dolphin",
),
Dict(
MessageItemDict {
v: [
(Str("count"),
Variant(Int32(1)),
),
(Str("count-visible"),
Variant(Bool(true)),
),
(Str("progress"),
Variant(Double(0.05))
),
(Str("progress-visible"),
Variant(Bool(true))
),
(Str("proxied-for"),
Variant(Str("kuiserver"))
),
],
sig: Signature(
"a{sv}\0",
),
},
),
] I am catching the data with this code: let mr = MatchRule::new_signal("com.canonical.Unity.LauncherEntry", "Update");
let incoming_signal = conn.add_match(mr).await?.cb(|message, (source,): (String,)| {
println!("Hello from {} happened on the bus!: {:#?}", source, message.get_items());
let (data1, data2): (&str, HashMap<&str, u16>) = message.read2().expect("Error reading data");
print!("{:#?}", data1);
true
}); I am able to get the first string, but not the second dictionary, the HashMap is empty, what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
diwic
Jul 8, 2023
Replies: 1 comment 1 reply
-
The second entry is a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dgudim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The second entry is a
PropMap
. Does using that instead help?