spotify-tui and spotifyd using snap

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
michielv
Level 1
Level 1
Posts: 18
Joined: Tue Aug 24, 2010 12:23 pm

spotify-tui and spotifyd using snap

Post by michielv »

Hello I'm trying to setup spotify-tui with spotifyd using the two snap packages:
- spt
- spotifyd


1) snap install spt

I was able to start spt (spotify-tui) and configure the textual interface with the file:
/home/michielv/snap/spt/current/.config/spotify-tui/config.yml


2) I also installed spotifyd:
snap install spotifyd

snap services:

Code: Select all

Service            Startup       Current  Notes
spotifyd.spotifyd  ingeschakeld  actief   -

systemctl status snap.spotifyd.spotifyd.service:

Code: Select all

● snap.spotifyd.spotifyd.service - Service for snap application spotifyd.spotifyd
   Loaded: loaded (/etc/systemd/system/snap.spotifyd.spotifyd.service; enabled; vendor preset: enabled)
   Active: active (running) since do 2021-02-18 17:39:54 CET; 3min 37s ago
  Process: 20087 ExecStart=/usr/bin/snap run spotifyd (code=exited, status=0/SUCCESS)
 Main PID: 20111 (spotifyd)
    Tasks: 2
   Memory: 10.0M
      CPU: 365ms
   CGroup: /system.slice/snap.spotifyd.spotifyd.service
           └─20111 /snap/spotifyd/6/bin/spotifyd


For spotifyd I need also a config file which should be located at:
/root/snap/spotifyd/current/.config/spotifyd/spotifyd.conf

It's configured under /root because it's a daemon.

The spotifyd.conf contains at least the username and password for your premium Spotify account.

Within /root/snap/spotifyd/current/ the part .config/spotifyd/spotifyd.conf does not exist initially and has to be created.

After creating the config file, I want to restart the service:
snap restart spotifyd

but then it comes inactive:
sudo snap logs spotifyd:

Code: Select all

2021-02-18T16:46:25Z systemd[1]: Stopping Service for snap application spotifyd.spotifyd...
2021-02-18T16:46:25Z systemd[1]: Stopped Service for snap application spotifyd.spotifyd.
2021-02-18T16:46:25Z systemd[1]: Starting Service for snap application spotifyd.spotifyd...
2021-02-18T16:46:25Z systemd[1]: Started Service for snap application spotifyd.spotifyd.
2021-02-18T16:46:25Z Spotifyd[20931]: Detached from shell, now running in background.

snap services:

Code: Select all

Service            Startup       Current   Notes
spotifyd.spotifyd  ingeschakeld  inactief  -
systemctl status snap.spotifyd.spotifyd.service:

Code: Select all

● snap.spotifyd.spotifyd.service - Service for snap application spotifyd.spotifyd
   Loaded: loaded (/etc/systemd/system/snap.spotifyd.spotifyd.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since do 2021-02-18 17:46:25 CET; 3min 15s ago
  Process: 20912 ExecStart=/usr/bin/snap run spotifyd (code=exited, status=0/SUCCESS)
 Main PID: 20930 (code=exited, status=0/SUCCESS)
I can't get it started with:
sudo snap start spotifyd

or
systemctl start snap.spotifyd.spotifyd.service

It remains inactive.

I found a workaround by doing directly:
/snap/spotifyd/current/bin/spotifyd -u myusername -p mypassword

but thats not the way to start a daemon the right way.

So does anybody know how to configure spotifyd properly using it as a snap package?
suavo
Level 1
Level 1
Posts: 2
Joined: Fri Feb 26, 2021 3:50 pm

Re: spotify-tui and spotifyd using snap

Post by suavo »

hey,
i have been trying to work this issue out for a while i got one question
how exactly did u manage to work around the issue by starting it manually (i am a noob i got no clue)
hope you can help me out

thanks
suavo
Level 1
Level 1
Posts: 2
Joined: Fri Feb 26, 2021 3:50 pm

Re: spotify-tui and spotifyd using snap

Post by suavo »

hey i was wondering how you managed to do the workaround i do not know how to start snap with -u and -p hopefully you can explain
Post Reply

Return to “Software & Applications”