Reload theme on SIGHUP signal

Fixes #28

Allows for users/applications to request a theme reload
by sending SIGHUP signal to the daemon.
This commit is contained in:
Pablo Correa Gómez
2021-10-19 14:24:04 +00:00
committed by Guido Gunther
parent 753fff3e7a
commit 8e9bbd9d4c
4 changed files with 47 additions and 19 deletions
+4
View File
@@ -95,6 +95,10 @@ You can add your own themes in one of two ways:
$ sudo cp my_awesome_theme.json /usr/local/share/feedbackd/themes/
```
Upon reception of `SIGHUP` signal, the daemon process will proceed to retrigger
the above logic to find the themes, and reload the corresponding one. This can
be used to avoid having to restart the daemon in case of configuration changes.
Check out the companion [feedbackd-device-themes][1] repository for a
selection of device-specific themes. In order for your theme to be recognized
it must be named properly. Currently, theme names are based on the `compatible`