feat: add dbus_connection() method to app::Application trait

This commit is contained in:
Ian Douglas Scott 2025-07-21 13:59:09 -07:00 committed by GitHub
parent 38dde24f96
commit b8eaad2a7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 0 deletions

View file

@ -44,6 +44,12 @@ pub fn subscription<App: ApplicationExt>() -> Subscription<crate::Action<App::Me
std::process::exit(1);
}
output
.send(crate::Action::Cosmic(crate::app::Action::DbusConnection(
conn.clone(),
)))
.await;
#[cfg(feature = "smol")]
let handle = {
std::thread::spawn(move || {