summaryrefslogtreecommitdiffstats
path: root/third_party/rust/dbus/examples/properties_msgitem.rs
blob: 86e1aa50867bfb02ff1bfb10e2ada8bef181b4fa (plain)
1
2
3
4
5
6
7
8
9
10
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())
}