You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for the help on #354. I revised my code to something like below:
#[tokio::main]asyncfnmain(){play_with_zbus().await;}asyncfnplay_with_zbus(){let address = get_ibus_address().expect("Faild to get IBus address.");println!("IBus address: {}", address);let conn = ConnectionBuilder::address(Address::Unix(address.into())).expect("Failed to get a connection to the session bus.").auth_mechanisms(&[AuthMechanism::External]).build().await.expect("Failed to build a DBus connection.");}
I would get output like:
IBus address: unix:path=/home/lee/.cache/ibus/dbus-5pdegSP4,guid=31b5004906b205dd7d4638846472476b
thread 'main' panicked at 'Failed to build a DBus connection.: InputOutput(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:65:10
I think the address is correct and I was able to use the same address to get it connected with the other DBus library. Maybe I missed something. Thanks!
The text was updated successfully, but these errors were encountered:
First, thank you for the help on #354. I revised my code to something like below:
I would get output like:
I think the address is correct and I was able to use the same address to get it connected with the other DBus library. Maybe I missed something. Thanks!
The text was updated successfully, but these errors were encountered: