Skip to content

Commit 165cbf7

Browse files
authored
Add /etc configuration file for deamon installation, fixes stale README (#243)
fixes #242 Implemented /etc/sendspin/settings-daemon.json configuration file, to make Sendspin deamon configuration easier for admins and fix the incorrect stale info in the README. * Installer creates /etc/sendspin/settings-daemon.json during installation * Settings class reads from this file and merges fields with ~/.config/sendspin/settings-daemon.json, where fields in the latter take precedence over /etc/sendspin/settings-daemon.json * Backwards compatible as existing ~/.config/sendspin/settings-daemon.json still work * Only runtime changes are saved to config, so user preferences are respected. * README updated to reflect changes
1 parent 82950dd commit 165cbf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pip install --upgrade sendspin
106106
sudo systemctl restart sendspin
107107
```
108108

109-
Your client name, audio device selection, and other settings in `/etc/default/sendspin` are preserved during the update.
109+
Your client name, audio device selection, and other settings in `~/.config/sendspin/settings-daemon.json` are preserved during the update.
110110

111111
> **Note:** You do **not** need to uninstall and reinstall when updating. Your configuration (client name, audio device, delay settings) is stored separately and will be preserved.
112112
@@ -395,7 +395,7 @@ sudo systemctl status sendspin # Check status
395395
journalctl -u sendspin -f # View logs
396396
```
397397

398-
**Configuration:** Edit `/etc/default/sendspin` to change client name, audio device, or delay settings.
398+
**Configuration:** Edit `~/.config/sendspin/settings-daemon.json` to change client name, audio device, or other settings.
399399

400400
**Uninstall:**
401401
```bash

0 commit comments

Comments
 (0)