From 16fc583ff869bfc3c6bcb982c8383332806bd80f Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Mon, 28 Nov 2022 11:09:07 +0100 Subject: [PATCH 1/2] README: Mention that DBus disconnect ends feedback --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1ee68dd..e12c061 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,10 @@ events. This will allow us to act as a system sound library so applications only need to call into this library and things like the quiet and silent profile work out of the box. +Any feedback triggered by a client via an event will be stopped latest when the +client disconnects from DBus. This makes sure all feedbacks get canceled if the +app that triggered it crashes. + ## Feedback theme Events are then mapped to a specific type of feedback (sound, led, vibra) via a device specific theme (since devices have different capabilities). From f5391af6b9b75b89714b1ddfbda918260cb81407 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Mon, 28 Nov 2022 11:09:13 +0100 Subject: [PATCH 2/2] README: Mention python example --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e12c061..924e3b2 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,11 @@ Run feedbacks for event `message-new-instant` for 10 seconds: _build/cli/fbcli -t 10 -E alarm-clock-elapsed ``` +## Python example + +There's an `example.py` script in the example/ folder of the +repository demonstrating how to trigger feedback via an event. + ## Per app profiles One can set the feedback profile of an individual application via `GSettings`. E.g. for an app with app id `sm.puri.Phosh`