- 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)
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?