The current line Exec=spotify --uri=%u
doesn't work properly on my system (Sway, Wayland).
It seems that xdg-utils
doesn't support field code placeholders like %u
unless they are passed as separate arguments — it ends up calling:
spotify --uri=%u spotify:track:7GhIk7Il098yCjg4BQjzvb
This causes Spotify to ignore the URI entirely.
Interestingly, --uri=
appears to be unnecessary. Simply using:
Exec=spotify %u
works fine.
You can test this behaviour directly via:
spotify spotify:track:7GhIk7Il098yCjg4BQjzvb
and then verify the fix with:
xdg-open spotify:track:7GhIk7Il098yCjg4BQjzvb
after modifying the .desktop
file.
Pinned Comments
gromit commented on 2024-01-24 14:22 (UTC) (edited on 2024-12-28 11:34 (UTC) by gromit)
Please make sure to import the correct GPG key first:
And always build in a clean chroot. It is as easy as:
It is expected that the package will break now and then, as spotify continuously changes download binaries, gpg keys etc (which is not appropriate, but we cannot change this). Please be patient if an update does not occur the next day, you can still use an existing spotify install or update the version yourself.
Antiz commented on 2023-09-13 13:21 (UTC)
@lightofpast Just pushed
v1:1.2.20.1210-2
that now allows you to set custom launch flags in aspotify-flags.conf
file under$XDG_CONFIG_HOME
or~/.config
:)