sudo snap install spotify
succeeded and running it again indicates Spotify is installed. However, running
gives command not found! Searching in Unity for "spotify" yields no results. What do?
$PATH variable by executing in a Terminal:
The output should be very similar to this:
You have to verify if
/snap/bin is included in this
$PATH, otherwise you have to add it manually, here is how to do it: How do I modify my PATH so that the changes are available in every Terminal session.
If this doesn't work, try deleting and installing again the snap, the required commands are:
sudo snap list to verify if Spotify is installed.
sudo snap remove spotify to delete it.
sudo snap install spotify to re-install it again.
After installing it you can run the command
which spotify to see if it is recognized now.
Hope it helps, good luck!
The solution is simple. Log out and log back in again.
Same thing happened to me. It was the first time I had installed a snap app, and I expect that the $PATH variable had changed as per other answers, but the change only takes effect after logging out and logging back in again.
Personally, I simply had to open a different Terminal window. For some reason it couldn't find it from the window I'd used to run the snap command.
Another solution is go to the folder
/snap/spotify/6/usr/bin/ and double-click the file spotify.
This worked to me.
I've added to the menu using
alacarte, then adding
/snap/bin/spotify to the music section