开发者

How to emit dbus signal from command line

开发者 https://www.devze.com 2023-01-15 21:03 出处:网络
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.

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

精彩评论

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