开发者

How to emit dbus signal from command line

Is there a way to emit dbus signal from co开发者_StackOverflowmmand line using dbus-send or something else ?


You can use the utility dbus-send to send D-Bus request from the command line.

dbus-send --system --type=signal / com.example.signal_name

or if you'd like to send some data with the signal

dbus-send --system --type=signal / com.example.signal_name string:"hello"


You could also use qdbus. There is a decent tutorial here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜