summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-11-21 17:36:40 -0500
committerVictor Kareh <[email protected]>2026-01-19 14:44:34 -0500
commit24ee308028d86ea9167d7123a59cc654f2697cc1 (patch)
tree474b568be34b4aa11fa4e9b4e6db7c3f72bd5ef9 /src
parentc5b1a9f9da605896cf102b508c436189ce2c0dd8 (diff)
downloadmate-notification-daemon-24ee308028d86ea9167d7123a59cc654f2697cc1.tar.bz2
mate-notification-daemon-24ee308028d86ea9167d7123a59cc654f2697cc1.tar.xz
daemon: Don't exit on idle when history is enabled
Prevent daemon from exiting when history tracking is enabled to preserve the in-memory notification history.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 062e9a5..d28266d 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -315,6 +315,9 @@ static void add_exit_timeout(NotifyDaemon* daemon)
if (! daemon->idle_exit)
return;
+ if (daemon->history_enabled)
+ return;
+
if (daemon->exit_timeout_source > 0)
return;