Skip to content

Commit

Permalink
fix(cmd): check for spotify.exe existence instead of app folder (#2747)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila authored Jan 4, 2024
1 parent 9ab6489 commit bdd2ab7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ func InitPaths() {

spotifyPath = utils.ReplaceEnvVarsInString(spotifyPath)
prefsPath = utils.ReplaceEnvVarsInString(prefsPath)
testPath := spotifyPath

if _, err := os.Stat(spotifyPath); err != nil {
if runtime.GOOS == "windows" {
testPath = filepath.Join(spotifyPath, "Spotify.exe")
}

if _, err := os.Stat(testPath); err != nil {
actualSpotifyPath := utils.FindAppPath()

if len(actualSpotifyPath) == 0 {
Expand Down

0 comments on commit bdd2ab7

Please sign in to comment.