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.
精彩评论