我正在运行x86_64 Debian4.19之上的i3-gaps & systemd;我对在DBus上玩org.freedesktop.Notifications接口感兴趣,但是在/usr/lib/dbus-1.0中没有这样的服务/接口/任何命名的服务/接口,也没有/usr/lib/notification-daemon或/usr/lib/x86_64-linux-gnu/notification-daemon。
我尝试从源代码重新编译libnotify (包括运行apt get libnotify-dev),但仍然没有效果,我完全不明白在哪里可以找到这个守护进程,以及如何生成应该在那里的DBus服务。
值得注意的是,当我运行notify-send时,确实会显示一个通知框,通过dbus-monitor,您可以看到:
method call time=1565902191.045580 sender=:1.130 -> destination=:1.131 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "notify-send"
uint32 0
string ""
string "smh"
string ""
array [
]
array [
dict entry(
string "urgency"
variant byte 2
)
]
int32 -1
method return time=1565902191.046365 sender=:1.131 -> destination=:1.130 serial=4 reply_serial=7
uint32 2发布于 2019-08-15 22:16:22
通知守护进程可以在它自己的包notification-daemon中使用。
https://unix.stackexchange.com/questions/535800
复制相似问题