1
0
Fork 0
firefox/third_party/rust/dbus/examples/properties_msgitem.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
363 B
Rust

extern crate dbus;
use dbus::{Connection, BusType, Props};
fn main() {
let c = Connection::get_private(BusType::System).unwrap();
let p = Props::new(&c, "org.freedesktop.PolicyKit1", "/org/freedesktop/PolicyKit1/Authority",
"org.freedesktop.PolicyKit1.Authority", 10000);
println!("BackendVersion: {:?}", p.get("BackendVersion").unwrap())
}