spotify-qt icon indicating copy to clipboard operation
spotify-qt copied to clipboard

Give password permanently?

Open katakombi opened this issue 4 years ago • 5 comments

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?

katakombi avatar Feb 25 '21 17:02 katakombi

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.

kraxarn avatar Feb 25 '21 19:02 kraxarn

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:
    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 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 🪄

Deuchnord avatar Mar 25 '21 15:03 Deuchnord

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.

kraxarn avatar Mar 25 '21 19:03 kraxarn

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 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 🪄

spotifyd.conf [global] username = "mail" use_keyring = true

keepassxc expose the pass with Secret Service

maybe spotify-qt could support the Secret Service directly?

lbiaggi avatar Apr 13 '21 13:04 lbiaggi

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.

kraxarn avatar Apr 13 '21 14:04 kraxarn

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

lostiniceland avatar May 10 '23 16:05 lostiniceland

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 avatar Feb 04 '24 17:02 IlyaBizyaev

@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.

kraxarn avatar Mar 09 '24 15:03 kraxarn

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?

IlyaBizyaev avatar Mar 09 '24 15:03 IlyaBizyaev

Yes, but it disables itself automatically if libsecret cannot be found, instead of failing to build, so maybe that's why.

kraxarn avatar Mar 09 '24 15:03 kraxarn