Reputation: 9893
Is there a way to emit dbus signal from command line using dbus-send or something else ?
Upvotes: 8
Views: 26573
Reputation: 1791
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"
Upvotes: 16