Ale*_*lex 11 notification notify-osd 14.04
在旧版本的 Ubuntu 中,/usr/share/dbus-1/services/org.freedesktop.Notifications.service可以编辑以更改默认通知守护程序。
但是,更改此文件不再影响较新版本中的默认通知守护程序。关于如何更改默认通知守护程序的任何想法?
use*_*.dz 18
似乎没有优先级或单个设置点来设置要运行的 freedesktop 通知守护程序。我在 Ubuntu 14.04 上安装 XFCE 时遇到了这样的问题。
Unity 通知启动,xfce4-notifyd因为它是默认设置。
检查可用的通知服务,例如:
$ grep -r org.freedesktop.Notifications /usr/share/dbus-1/services/
/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service:Name=org.freedesktop.Notifications
/usr/share/dbus-1/services/org.freedesktop.Notifications.service:Name=org.freedesktop.Notifications
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.disable
pkill xfce4-notifyd
Run Code Online (Sandbox Code Playgroud)查看
notify-send test
Run Code Online (Sandbox Code Playgroud)Unity 通知样式返回 ( notify-osd)
另一种方式是,Unity 不会启动任何默认通知守护程序。因此,您可以将您喜欢的添加到启动应用程序中。请参阅如何在登录时自动启动应用程序?. 我认为它更好,因为它不会影响在服务文件上中继以启动其通知守护程序的其他桌面会话。
有用的参考:
| 归档时间: |
|
| 查看次数: |
10527 次 |
| 最近记录: |