Notify-send (also zenity --notification --text "") stops working after logging in. Not sure how long it takes to fail but it starts failing silently in that no notification is put up.
Sorry, adding more details:
I'm on Ubuntu 21.10.
As for stops working I mean that after logging in I can do things like "notify-send 'Hello world'" and I get a notification "bubble" in the upper right-hand corner saying "Hello world". Try that again in say a few hours or and notify-send does nothing - no notification is displayed and the exit code is 0.
zenity, however, seems as if it does the same thing as notify-send but with more parameters fails like this:
Earth:zenity --notification --text 'Hello world'
Gtk-Message: 10:55:47.450: Failed to load module "xapp-gtk3-module"
** (zenity:109656): WARNING **: 10:55:47.503: Error showing notification: GDBus.Error:org.freedesktop.Notifications.MaxNotificationsExceeded: Exceeded maximum number of notifications
Earth:
So how do I increase the maximum number of notifications (and why is there a limit anyway?).
Searched for GDBus.Error:org.freedesktop.Notifications.MaxNotificationsExceeded: Exceeded maximum number of notifications and found https://jacekkowalczyk.wordpress.com/2013/06/12/how-to-workaround-a-bug-exceeded-maximum-number-of-notifications-on-linux/ but there is no notification-daemon running. Tried running /usr/lib/notification-daemon/notification-daemon, doesn't run - just comes back to the command line with no error. And yes, there was no notification-daemon running after I logged in and notify-send (and zenity) were able to put up notifications. Over some period of time after logging in, this breaks.
Oh, and if important, I'm running compiz with flashback and an X server instead of wayland.
The solution seems to be to move from Gnome2 -> Mate.