Elleo / cutespotify

A QT5 Spotify client, based on MeeSpot with support for Ubuntu Touch and SailfishOS.
BSD 3-Clause "New" or "Revised" License
55 stars 25 forks source link

Hardcoded homedirectory #3

Closed kaimast closed 11 years ago

kaimast commented 11 years ago

In qspotifysession.cpp the directory "/home/phablet" is used. This breaks CuteSpotify on my machine as my home directory is "/home/kai"

Try using "~/" instead. I am not 100% sure if this works on the Phone too but it should.

rbelem commented 11 years ago

I just replaced the hardcoded path by QStandardPaths::DataLocation

Elleo commented 11 years ago

I've changed that to GenericDataLocation + "/com.mikeasoft.cutespotify", as DataLocation isn't a valid path for Ubuntu Touch. AppArmor only allows us to write to ~/.local/share//. I've also applied the same changes to libQtSpotify which sets paths for libspotify's use.