spotify-qt
spotify-qt copied to clipboard
Give password permanently?
Great app, thanks a lot for this! But would there be a way to add the password for spotifyd permanently as I don't want to copynpaste it every time?
Currently, only KWallet is supported for password storage, but as this is designed to be portable, I think some simple password encryption could be useful.
You actually can store securely your password with solution presented in spotifyd's docs:
- Create or edit the file at
~/.config/spotifyd/spotifyd.conf:[global] username = "[email protected]" use_keyring = true - Invoke the following command:
You will be prompted for your password.secret-tool store --label='name you choose' application rust-keyring service spotifyd username <your-username>
Once it is done, give spotifyd a try with spotifyd --no-daemon: if it returns Authenticated as "[some random-like string]" ! in the standard output, then it is ready.
The last think you need to do is to activate Use global config in Spotify-Qt's options. Restart, and see the magic happen 🪄
spotify-qt prefers using CLI arguments over configuration files. If you want to configure it that way, I would recommend setting everything in your config file, and enabling "use global config" in the app. I didn't know about secret-tool though, might be interesting for support outside of KDE.
You actually can store securely your password with solution presented in
spotifyd's docs:1. Create or edit the file at `~/.config/spotifyd/spotifyd.conf`: ``` [global] username = "[email protected]" use_keyring = true ``` 2. Invoke the following command: ```shell secret-tool store --label='name you choose' application rust-keyring service spotifyd username <your-username> ``` You will be prompted for your password.Once it is done, give
spotifyda try withspotifyd --no-daemon: if it returnsAuthenticated as "[some random-like string]" !in the standard output, then it is ready.The last think you need to do is to activate Use global config in Spotify-Qt's options. Restart, and see the magic happen 🪄
spotifyd.conf
[global]
username = "mail"
use_keyring = true
keepassxc
expose the pass with Secret Service
maybe spotify-qt could support the Secret Service directly?
KWallet does implement the secret service, so switching wouldn't affect current users. It's just something that's planned, but I haven't actually gotten around to implementing yet.
I am currently trying to setup my password using KWallet, but Spotify-Qt ist not storing anything there. I've got a secure password which I cannot type in on every start so some kind of wallet is highly appreciated. How can I setup KWallet
Is this feature somewhat hidden at the moment? It looks like USE_KEYCHAIN needs to be set somewhere, but it's not listed in CMakeLists.txt. According to the Troubleshooting page, it's off in openSUSE.
@IlyaBizyaev It's "ON" by default in "lib/thirdparty/CMakeLists.txt". I don't build or maintain the openSUSE package, so I don't know if it's manually disabled there or why it would be.
I don't see it being disabled: https://build.opensuse.org/package/view_file/multimedia:apps/spotify-qt/spotify-qt.spec?expand=1
But does setting it in https://github.com/kraxarn/spotify-qt/blob/master/lib/thirdparty/CMakeLists.txt make it visible to source files in other subdirectories?
Yes, but it disables itself automatically if libsecret cannot be found, instead of failing to build, so maybe that's why.