Score:0

notify-send works for a little while after logging in then stops working

vn flag

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.

waltinator avatar
it flag
Read https://askubuntu.com/help/how-to-ask Are you using Ubuntu? Which supported release? "stops working" is an overly broad problem description.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.