如何在 Xubuntu 中禁用弹出通知?

cra*_*zzz 8 notification xfce xubuntu

如何在 Xubuntu 11.10 上禁用所有弹出通知

我试过了: sudo apt-get remove notify-osd

这导致

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package notify-osd is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

Uri*_*era 15

显然删除是notify-osd行不通的,因为 Xubuntu 不使用它,它使用xfce4-notifyd.

因此,如果您想删除它们,请删除该包。

 sudo apt-get remove xfce4-notifyd
Run Code Online (Sandbox Code Playgroud)

如果您只想禁用它们,请使用以下命令:

 sudo mv /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service.disabled
Run Code Online (Sandbox Code Playgroud)

要扭转这一点:

 sudo mv /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service.disabled /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
Run Code Online (Sandbox Code Playgroud)

来源。


小智 5

您还可以运行此命令,并且能够编辑您想要在通知中显示或阻止的内容。我必须为 SMB4K 的驱动器安装座执行此操作,因为这让我发疯,哈哈。

xfce4-notifyd-配置