mate-desktop / mate-notification-daemon

Daemon to display passive pop-up notifications
https://mate-desktop.org
GNU General Public License v2.0
30 stars 26 forks source link

daemon exits without error after being idle for 30 seconds #184

Closed jebotz closed 3 years ago

jebotz commented 3 years ago

On Fedora 32 I noticed that I wasn't getting notifications, so I checked and saw that the daemon wasn't running. Starting it by hand makes it work and actually handle notifications, but it exits after being idle for exactly 30 seconds. Note that so long as there are notification events it does not exit... it exits 30 seconds after the last event.

Also, I've rebuilt it from latest github source and it still does the same thing.

Running it with --debug gives the following:

$ /usr/libexec/mate-notification-daemon --debug
(mate-notification-daemon:1747741): GLib-GIO-DEBUG: 17:51:46.167: _g_io_module_get_default: Found default # implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(mate-notification-daemon:1747741): dconf-DEBUG: 17:51:46.167: watch_fast: "/org/mate/notification-daemon/" (establishing:  0, active: 0)
(mate-notification-daemon:1747741): dconf-DEBUG: 17:51:46.171: watch_established: "/org/mate/notification-daemon/" (establishing: 1)

...and again it exits after 30 seconds. Running it with strace gives the following (last few lines):


poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 984) = 0 (Timeout)
recvmsg(3, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 13000) = 0 (Timeout)
exit_group(0)                           = ?
+++ exited with 0 +++

Expected behaviour

daemon handles notifications

Actual behaviour

daemon exits without error exactly 30 seconds after starting

Steps to reproduce the behaviour

/usr/libexec/mate-notification-daemon

MATE general version

1.24.1

Package version

mate-notification-daemon-1.24.1-1.fc32

Linux Distribution

Fedora 32

Link to downstream report of your Distribution

jebotz commented 3 years ago

OK, well, doh. It's doing exactly what it's supposed to be doing... the problem is that for some reason it's not getting started in the first place by d-bus. I'll investigate further, but for now this doesn't seem to be a mate-notification-daemon bug; most likely a Fedora packaging issue.