From 3c8aee59c3e1228439bd6c6b70f3ef79d5f561cf Mon Sep 17 00:00:00 2001 From: _eyewave <89079979+eye-wave@users.noreply.github.com> Date: Mon, 20 Nov 2023 22:51:07 +0100 Subject: [PATCH] update spotify and prefs path with env variables --- src/cmd/cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/cmd.go b/src/cmd/cmd.go index 35be90cc06..4eedfb8a15 100644 --- a/src/cmd/cmd.go +++ b/src/cmd/cmd.go @@ -58,6 +58,9 @@ func InitPaths() { spotifyPath = settingSection.Key("spotify_path").String() prefsPath = settingSection.Key("prefs_path").String() + spotifyPath = utils.ReplaceEnvVarsInString(spotifyPath) + prefsPath = utils.ReplaceEnvVarsInString(prefsPath) + if len(spotifyPath) == 0 { spotifyPath = utils.FindAppPath()