mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[GH-ISSUE #590] Requires sudo #341
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @peterc-s on GitHub (Oct 31, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/590
Describe the bug
I wouldn't expect a Spotify player to require elevated privileges just to run, so I think this may be a strange bug.
When running the player without
sudoI get:So I ran
spotify_player authenticateand got no output. I then thought that I might need elevated privileges just to authenticate so ransudo spotify_player authenticateand got a link to authenticate with. Then runningspotify_playeragain I got the same:So I resorted to
sudo spotify_playerwhich gave me a new link to authenticate with and the finally I got through to the player, however I still can't withoutsudo.To Reproduce
Install through
yayon Arch Linux and attempt to authenticate.Expected behaviour
spotify_player authenticateshould give me a link to authenticate with andspotify_playershould take me to the player, without requiring elevated privileges.Log and backtrace
Screenshots

Environment
@peterc-s commented on GitHub (Oct 31, 2024):
Found the cause of the issue. When running
spotify_player authenticate, there is no attempt to overwrite the old credentials to re-authenticate and so it just exits, found I had an oldcredentials.jsonin the cache. It might be helpful to attempt to re-authenticate if bad credentials are found.@aome510 commented on GitHub (Oct 31, 2024):
With https://github.com/aome510/spotify-player/pull/592,
spotify_player authenticatewill ignore cache and re-authenticate the app@FrankFromHR commented on GitHub (Nov 4, 2024):
Just wanted to add to this issue that even after #592 I had to delete my cache folder to be able to authenticate and load the application correctly on a Windows 11 desktop.
GetCurrentPlaybackrequest #721GetCurrentPlaybackrequest #1657