deimus
deimus

Reputation: 9893

How to emit dbus signal from command line

Is there a way to emit dbus signal from command line using dbus-send or something else ?

Upvotes: 8

Views: 26573

Answers (2)

m__
m__

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

Millhouse
Millhouse

Reputation: 742

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

Upvotes: 0

Related Questions