Making Spotify for Linux work in Ubuntu

The Spotify for Linux software is a great initiative, but it is a little buggy. As I am a music freak, I had to make it work on my favorite operative system Ubuntu.

The solution that worked for me was deleting the spotify cache before the program start. It can be done by running the following in a terminal:

rm -Rf ~/.cache/spotify

Doing this every time you want to launch Spotify is too much of a trouble, therefore I made a small shellscript to do this for me. Start a text editor by executing the following:

gedit ~/spotify.sh

Enter the following code:

#!/bin/bash
# Remove spotify cache
rm -Rf ~/.cache/spotify;
# Start spotify
spotify;

This code removes the spotify cache and starts Spotify. Save the file.

Now, to make the file executable, run the following in a terminal:

chmod +x ~/spotify.sh

To run this script, execute

~/spotify.sh

If you want to make Spotify quick started, make an own program starter for it in the Ubuntu panel:

If you want the Spotify icon on your program starter, it is located at /usr/share/pixmaps/spotify-linux-512×512.png.

Now lean back and enjoy your music.

3 thoughts on “Making Spotify for Linux work in Ubuntu”

  1. hello!

    this helped alot.. I am however unsure what “egenskaper för programstartaren” is in English, also how I will find it?

    Thank you!

    Reply
    1. Hi! That’s the options window for the launcher. To open it, right-click the launcher icon. However, it does not exist in the current versions of Ubuntu. Here is my entry about how to do that: https://steffe.se/?p=846

      Reply
  2. “egenskaper för programstartaren” is Swedish for the property box of your launch icon.

    Reply

Leave a Reply