From f8bb451f68c461d779e01a4c10d474d42b211c6a Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 26 Jun 2023 20:04:01 -0400 Subject: [PATCH] start notifications daemon --- debian/control | 1 + src/main.rs | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index cb5c6b2..6d2ebc9 100644 --- a/debian/control +++ b/debian/control @@ -17,6 +17,7 @@ Depends: ${shlibs:Depends}, cosmic-comp, cosmic-panel, + cosmic-notifications, cosmic-bg, cosmic-app-library, cosmic-launcher, diff --git a/src/main.rs b/src/main.rs index b76ce52..d7856a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,6 +71,9 @@ async fn main() -> Result<()> { .await .expect("failed to start panel"); + let span = info_span!(parent: None, "cosmic-notifications"); + start_component("cosmic-notifications", span, &process_manager, &env_vars).await; + let span = info_span!(parent: None, "cosmic-app-library"); start_component("cosmic-app-library", span, &process_manager, &env_vars).await; @@ -103,9 +106,12 @@ async fn main() -> Result<()> { let (exit_tx, exit_rx) = oneshot::channel(); let _ = ConnectionBuilder::session()? .name("com.system76.CosmicSession")? - .serve_at("/com/system76/CosmicSession", service::SessionService { - exit_tx: Some(exit_tx), - })? + .serve_at( + "/com/system76/CosmicSession", + service::SessionService { + exit_tx: Some(exit_tx), + }, + )? .build() .await?;