README: Fix gdbus test command

It is TriggerFeedback and not Feedback (anymore). Also add a note how to
end the feedback in order to prevent loss of hearing :-).
This commit is contained in:
Sebastian Spaeth
2021-03-22 09:55:24 +01:00
parent 2674654c39
commit ec80c278a6
+6 -1
View File
@@ -57,7 +57,12 @@ gdbus introspect --session --dest org.sigxcpu.Feedback --object-path /org/sigxcp
and to request feedback for an event and to request feedback for an event
```sh ```sh
gdbus call --session --dest org.sigxcpu.Feedback --object-path /org/sigxcpu/Feedback --method org.sigxcpu.Feedback.Feedback 'my.app.id' 'phone-incoming-call' '[]' 0 gdbus call --session --dest org.sigxcpu.Feedback --object-path /org/sigxcpu/Feedback --method org.sigxcpu.Feedback.TriggerFeedback 'my.app.id' 'phone-incoming-call' '[]' 0
```
This will return an Event id which you should memorize if you ever want to end the ringtone with:
```sh
gdbus call --session --dest org.sigxcpu.Feedback --object-path /org/sigxcpu/Feedback --method org.sigxcpu.Feedback.EndFeedback EVENTID
``` ```
See `examples/` for a simple python example using GObject introspection. See `examples/` for a simple python example using GObject introspection.