Ubuntu – Gnome 3 notifications are replaced with notify-osd when the machine goes to sleep

11.10gnomenotify-osd

A similar question exists for 11.04, but the answers were "wait for 11.10; it'll work there." 11.10 has arrived, and it dun broke on me. 🙁

When I first started using Gnome Shell, the Gnome 3 notifications worked fine. After suspending and resuming, it appears to have reverted to the Unity notify-osd bubbles. This is annoying, because a bunch of notify-osd bubbles become little windows in the middle of the screen when the computer suspends. They also become queued up in the Gnome Shell notification bar at the bottom of the screen, all with the label "notify-osd".

Behold the windows!

If I log out and back in, notify-osd is gone and the Gnome 3 indicators are back until I put the machine to sleep. But how can I keep them permanently?

Best Answer

notifications are sent via DBUS and after installing notify-osd it redirects all notifications to itself.

This would not be particulary troublesome if not so many packages would depend on notify-osd directly (ubuntu-desktop, blueman, guake, update-notifier, network-manager-gnome, rhythmbox to name a few), efffectively breaking the ability to choose the notification system I'd like.

You can remove the diversion with the following command:

sudo dpkg-divert --remove --rename --package notify-osd --divert /usr/share/dbus-1/services/org.freedesktop.Notifications.service.notify-osd /usr/share/dbus-1/services/org.freedesktop.Notifications.service

But (I haven't tested this) this might either break updates of notify-osd (and thus your system) in a bad way or it might just reappear on the next update of notify-osd.