Help Wizard

Step 1



Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...


Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...


[Linux] Spotify on Kubuntu Xenial no local music files

[Linux] Spotify on Kubuntu Xenial no local music files

Hello guys,


since Ubuntu 16.04 Xenial is just around the corner I gave this a try in a virtual machine. I'm using the Kubuntu flavour.


The good:

Spotify runs out of the box, you can install, start, login, and play right away.


The ugly:

Spotify cannot open file dialog boxes. On the command line it shows that it cannot find zenity, which is a tool to display graphical dialog boxes from shell scripts. I don't know if that's a fallback if it cannot use the possibilities of the desktop environment (plasma 5 here), or if that's default. Anyway, a "sudo apt-get install zenity" fixes that and file dialog boxes show up


The bad:

While I now can add local sources to spotify, nothing shows up under "local files". On the console output there is no sign that it even tries to scan anything, it just does nothing. No output.


I ran spotify through strace -f and searched in the output for any appearance of libav* stuff or ffmpeg stuff or anything, but no hits. So it even doesn't try loading any libavformat and avutil and whatever it tried in the past.


So I'd be interested in comments from curious beta sofware users and of course of the devs to work together debugging this.




2 Replies

Well, turns out my test mp3s were broken. Tried with correct ones and voila, they show up in "local files". But then when playing them, spotify crashes with a segfault immediately.


But this time I caught spotify searching for libav stuff, it searched for, then tried and then


No success of course, because Xenial comes with libavformat-ffmpeg56 and libavcodec-ffmpeg56 which installs




Funny thing is, spotify did not even search for, although "strings -a /usr/share/spotify/spotify |grep libavformat" gives:


Sad thing that spotify does not provide its own it maybe works then. I guess I will now need to build an older ffmpeg version and put this lib into /usr/share/spotify.

So I went through all the dependencies and tried and retried and analyzed with ldd, and now I have these libraries copied from ubuntu trusty to /usr/share/spotify in my xenial system:


Now I have full local file support.


I hope this helps others searching for a workaround and I hope devs will update spotify to work out of the box for xenial very soon.

Suggested posts