NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.12k stars 14.15k forks source link

Spotify clients cannot find spotify daemon #171278

Open josphh opened 2 years ago

josphh commented 2 years ago

Describe the bug

spotify-tui cannot find the spotifyd service, rendering it unable to play music.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable the spotifyd service in configuration.nix and rebuild.
  2. Edit ~/.config/spotifyd/spotifyd.conf to include information required by spotifyd
  3. Install, run, and complete the spotify-tui setup.
  4. Check devices by dressing D, but spotifyd cannot be found, nor can it play music

Expected behavior

I expect spotify-tui to find spotifyd and play music

Screenshots

image

Additional context

With spotify-qt, I had the personal problem of being unable to find the daemon, like where the maintainer said it should be - rendering it also unable to play music. Possibly NixOS is putting the daemon at a different path, and not telling either of the apps where it actually is. I have* also verified spotifyd.service is running.

Notify maintainers

@anderslundstedt

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.34, NixOS, 22.05 (Quokka), 22.05.20220426.e10da1c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.0pre20220411_f7276bc`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`
anderslundstedt commented 2 years ago

I am afraid that right now I do not have the time to investigate this. Perhaps one of the maintainers of the spotifyd package—@marsam and @Br1ght0ne—could help?

danth commented 2 years ago

Edit ~/.config/spotifyd/spotifyd.conf

Perhaps you need to use services.spotifyd.settings rather than editing this file.