feat: add dbus_connection() method to app::Application trait
This commit is contained in:
parent
38dde24f96
commit
b8eaad2a7e
4 changed files with 21 additions and 0 deletions
|
|
@ -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 || {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue