From 2d54688a7309f9b99e38cef6cd4f648c691ace59 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 29 May 2025 12:12:16 -0400 Subject: [PATCH] fix: exit the notifications applet if the daemon is unavailable --- cosmic-applet-notifications/src/subscriptions/notifications.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cosmic-applet-notifications/src/subscriptions/notifications.rs b/cosmic-applet-notifications/src/subscriptions/notifications.rs index a66e5091..ce9df876 100644 --- a/cosmic-applet-notifications/src/subscriptions/notifications.rs +++ b/cosmic-applet-notifications/src/subscriptions/notifications.rs @@ -63,7 +63,8 @@ pub fn notifications(proxy: NotificationsAppletProxy<'static>) -> Subscription 5 { error!("Failed to receive notification events"); - _ = pending::<()>(); + // exit because the applet needs the notifications daemon in order to work properly + std::process::exit(0); } else { tokio::time::sleep(std::time::Duration::from_secs(1)).await; };