Skip to content

Commit 6faabc1

Browse files
committed
fix: nested symlink resolution in spotify_path autodetection on linux
In particular it's an issue on NixOS,
1 parent 23db696 commit 6faabc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func linuxApp() string {
285285
}
286286

287287
if (stat.Mode() & os.ModeSymlink) != 0 {
288-
binDest, err := os.Readlink(v)
288+
binDest, err := filepath.EvalSymlinks(bin)
289289

290290
if err != nil {
291291
continue

0 commit comments

Comments
 (0)