User scripts are do not execute on Windows
Author: Nemesis-ASCreated Jul 26, 2026Updated Jul 26, 2026
Labelsbug
Description The user scripts are broken on Windows.
To Reproduce
- Run the app in either daemon or no-daemon mode, registering a user script
- Perform any action that triggers the user script registered
- Check logs, the app triggers cmd with the wrong flag
Expected behavior The user script is executed successfully.
Logs
Click to show logs[DEBUG librespot_playback::player] command=Pause
[TRACE librespot_playback::player] == Stopping sink ==
[TRACE librespot_connect::spirc] ==> Paused
[INFO spotifyd::process] Running "echo hi" using "cmd" with environment variables {"POSITION_MS": "93495", "TRACK_ID": "2iVj11OdEBNIGUv9f7jGPK", "PLAY_REQUEST_ID": "0", "PLAYER_EVENT": "pause"}
Microsoft Windows [Version 10.0.26200.8875]
(c) Microsoft Corporation. All rights reserved.
Compilation flags
- dbus_mpris
- alsa_backend
- portaudio_backend
- pulseaudio_backend
- rodio_backend
Versions (please complete the following information):
- OS: Windows 11
- Spotifyd: 6af1e48
- cargo: cargo 1.96.1 (356927216 2026-06-26)
Additional context
This can be fixed by making the -c flag platform dependent
Source: Spotifyd/spotifyd