24

I have an application that went completely crazy and sent (it seems like) hundreds of notifications to the notification daemon. Now I've been getting notification bubbles for the last few minutes and it is getting annoying.

How can I make them stop without logging off or rebooting?

Nathan Osman
  • 32,495

2 Answers2

32

I have a .desktop file that I use to kill the notifications.

[Desktop Entry]
Name=Notify Kill
Comment=Kill those pesky notifications!
Exec=killall notify-osd
Icon=utilities-terminal
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;

Toss that as notify-kill.desktop in ~/.local/share/applications, wait a minute and it will pop up in your Unity dash.

To use, just open the dash and search for kill or notify, and it will clear your notifications!

jrg
  • 61,707
0

This solution eliminates all OSD notifications (on screen display noise) is quoted from Close button on notify-osd?

dbus-monitor "interface='org.freedesktop.Notifications'" | \
grep --line-buffered "member=Notify" | \
sed -u -e  's/.*/killall notify-osd/g' | \
bash

This can be run in a terminal or as a background task - stop it and pop-up graffiti resumes.

To run it, copy and paste it into a terminal window (opened via ctrl+alt+T). Close the window or type type ctrl+C to stop it.

Cross refs.:

Pablo Bianchi
  • 17,371
troll la la la
  • 513
  • 6
  • 5