Skip to content

Commit

Permalink
update spotify and prefs path with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
eye-wave committed Nov 20, 2023
1 parent a01cdb5 commit 3c8aee5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 3c8aee5

Please sign in to comment.