如何清空待处理通知队列?

Nat*_*man 23 notify-osd kill

我有一个完全疯狂的应用程序,并向通知守护程序发送了(似乎)数百条通知。现在我在过去的几分钟里一直收到通知气泡,这很烦人。

如何在不注销或重新启动的情况下让它们停止?

jrg*_*jrg 31

我有一个 .desktop 文件,用于终止通知。

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

把它扔进notify-kill.desktop去~/.local/share/applications,等一下,它会在你的 Unity dash 中弹出。

要使用,只需打开破折号并搜索kill或notify,它就会清除您的通知!