feedback-manager: Search for default theme under XDG_CONFIG_HOME first

This would allow users to create their own feedback profiles
without editing system files or using root privileges

Signed-off-by: Pablo Correa Gómez <ablocorrea@hotmail.com>
This commit is contained in:
Pablo Correa Gómez
2021-06-08 16:17:41 +02:00
parent b45468080e
commit 3802c89e67
2 changed files with 14 additions and 2 deletions
+4 -1
View File
@@ -84,7 +84,10 @@ You can add your own themes in one of two ways:
1. By exporting an environment variable `FEEDBACK_THEME` with a path to a
valid theme file (not recommended, use for testing only), or
2. By adding your theme file to one of the folders in the `XDG_DATA_DIRS`
2. By creating a theme file under `$XDG_CONFIG_HOME/feedbackd/themes/default.json`.
If `XDG_CONFIG_HOME` environment variable is not set or empty, it will
default to `$HOME/.config`, or
3. By adding your theme file to one of the folders in the `XDG_DATA_DIRS`
environment variable, appended with `feedbackd/themes/`. This folder isn't
created automatically, so you have to create it yourself. Here's an example:
```bash