I have installed spotify on my ubuntu 12.04 machine. When I start Spotify it simply closes. I found a way to circumvent this problem in some forum: simply remove the folder ~/.cache/spotify It is however rather annoying that I have to delete this folder every time I want to use Spotify.
My question is, is there a way to tell Ubuntu that it should delete this folder and its content when I start my computer? And if so, how do I do that?
My idea is to add something like the following to the .bashrc file
if [ -d ~/.cache/spotify ]; then
rmdir ~/.cache/spotify
fi