summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-11-22 12:41:38 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-11-22 12:41:38 +0100
commitab2e269bed02925674d17ea1c4a1ebf7e95bcc46 (patch)
tree63caede867b6debdb8f83dae46bd28902d5db335 /src
parent15e5fc9f8a3e28b5d478e5e0f75fe25e923a26f6 (diff)
downloadpianobar-ab2e269bed02925674d17ea1c4a1ebf7e95bcc46.tar.gz
pianobar-ab2e269bed02925674d17ea1c4a1ebf7e95bcc46.tar.bz2
pianobar-ab2e269bed02925674d17ea1c4a1ebf7e95bcc46.zip
Expand ~ in event_command too
Diffstat (limited to 'src')
-rw-r--r--src/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.c b/src/settings.c
index f03f368..6ee9df2 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -278,7 +278,7 @@ void BarSettingsRead (BarSettings_t *settings) {
free (settings->autostartStation);
settings->autostartStation = strdup (val);
} else if (streq ("event_command", key)) {
- settings->eventCmd = strdup (val);
+ settings->eventCmd = BarSettingsExpandTilde (val, userhome);
} else if (streq ("history", key)) {
settings->history = atoi (val);
} else if (streq ("max_player_errors", key)) {