catharsis / spotifile

FUSE file system for Spotify
BSD 3-Clause "New" or "Revised" License
144 stars 7 forks source link

Put the libspotify cache folder in .cache #17

Closed raoulh closed 9 years ago

raoulh commented 9 years ago

The libspotify cache folder is saved in .config/spotifile/libspotify

It should be saved in .cache/spotifile/libspotify instead.

catharsis commented 9 years ago

Hm, on second thought, that should already be the case. We use https://developer.gnome.org/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-get-user-cache-dir to decide where to put the cache. This should be resolved to XDG_CACHE_HOME if it's set, and default to ~/.cache otherwise.

On my machine, it's indeed put in ~/.cache/spotifile/libspotify.

Is XDG_CACHE_HOME set in your session?

raoulh commented 9 years ago

hmm, ok. That was the problem, XDG_CACHE_HOME was wrong. Thanks