-
Spotifyd in version 0.4.1 runs like a charm on my Raspberry Pi and Arch Linux. At least as just a single account is using it. Using it with a Family or Duo account, I ran into the issue that only the first account can use it. The others can join the session, but without the first account it is not possible to connect. I use zeroconf without credentials in the config file. Still there is a credentials.json file created in the .cache/spotifyd/zeroconf directory, containing the username and authentification data of the user that has been signed in. Searching the old Issues on Github, I now found a solution that works for me, as described by euri10 some years ago: Just setting the RestartSec to a smaller value (as someone also commented in this thread) didn't do the trick for me. Is the setup with multiple systemd services still the way to go? I could imaging that a somewhat more elegant solution exists that I haven't found yet. For example, not storing credentials at all in the cache folder and just accepting whatever account wants to log in. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not entirely sure what's happening there, but I'm gonna describe what Assuming that
By this description, I would expect any other user to be able to override the currently active session via To test this hypothesis, there's a few things I'd be interested in:
Anyway, if this is what's happening, a short-term workaround might be (assuming you have dbus controls working): If you don't have dbus controls, you could still do something similar in a slightly more hacky way: Set That's my current braindump on your issue, hopefully at least some of it applies. ^^ Let me know, what you find! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the insights. Found some time for some more testing using two devices with different accounts.
On startup of spotifyd the device is visible to all accounts and anyone can connect. It doesn't matter which account information is stored in
If the first connected user disallows others to join, the device remains visible for the other users. Interestingly, at that point it is possible to capture the device for another user. That works even when the first user is still using the device. The music of the first user stops, the music of the second user starts. The credentials file is updated in the .cache/zeroconf folder. In the mobile app of the first user, the device still seems connected (spotifyd device is shown in green) after the other user has captured the device. After that, it is not possible to connect to the spotifyd device again, even after manually disconnecting. On the mobile app the loudspeaker symbol of the spotifyd device flashes for about 20 sec ("Connecting...") until the connection request apparently times out. Even when the other user has disconnected, the first user cannot reconnect. Restarting the mobile app for the first user also does not help. Restarting spotifyd helps to allow the connection. Have to look into dbus messaging to test if that helps. I only have two accounts, so I cannot test if a third user could capture the connection from the second user. Possibly the first user cannot reconnect after the connection was stolen from him for some reason. Let me know if I should do some more tests. |
Beta Was this translation helpful? Give feedback.
Thank you for trying all that!
I…