-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get password from KeePassXC via secret-tool #1086
Comments
Hi and thank you for the report!
This should be addressed in #1041 or (in a better way) in #1059. The latter would give you messages like: # spotifyd --no-daemon
Loading config from "/home/user/.config/spotifyd/spotifyd.conf"
No password specified. Checking password_cmd
No password_cmd specified
No proxy specified
Using software volume controller.
no usable credentials found, enabling discovery
-- keeps running --
# spotifyd --username "invalid" --password "invalid" --no-daemon
Loading config from "/home/user/.config/spotifyd/spotifyd.conf"
No proxy specified
Using software volume controller.
Connecting to AP "ap.spotify.com:443"
failed to connect to spotify: Login failed with reason: Bad credentials
-- exits -- Still, I agree that the keyring functionality itself could be a bit more verbose about whether it found a password or not. Judging from your logs, it seems that it didn't find anything in the keyring and didn't try the login, but I'm not entirely sure. Otherwise, it should show at least the
I haven't tried the Secret Service provided by KeepassXC yet, so it may as well be an issue on that side. |
I found the problem of spotifyd not actually working when it requests the password from keepassxc. The problem occurrs when we have the access to the database configured in keepassxc to always ask for confirmation when accessing the database entries. I guess when spotifyd when asks doesn't know how to deal or understands the database being locked. Temporarily disabling access confirmation on keepass side, allows the spotifyd to actually fetch the password and properly initialize. |
Looks like this is related to the upstream implementation of get_password(), not anything with spotifyd. This issue goes into greater detail hwchen/keyring-rs#84 In the meantime, this is what needs to be unchecked in KeepassXC: Thanks @\vascorsd ! |
Thank you, @dryya, for linking to that issue! That indeed seems like it should solve our problem once a fix is released. |
I was scratching my head over this so hard. This solved the issue for me. Thanks! |
Description
I'd like to use KeePassXC's integrated secret service to store the password and have spotifyd successfully retrieve it (via secret-tool).
Doing secret-tool lookup username gives me the password as expected. Can't tell if something happens though because I'm not getting any feedback towards success or failure.
To Reproduce
Expected behavior
Give me a clear indication if login worked or not.
Logs
The text was updated successfully, but these errors were encountered: