Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unnecessarily nested XDG_CACHE_HOME / XDG_DATA_HOME directories #147
Hi, I've just heard about Strawberry and tried it out for a bit on Arch via the
After running Strawberry for a bit, I've noticed an issue with the cache, config and data dirs. It looks like Clementine's behavior of storing data in its config dir was fixed and the data files were moved it to the correct XDG_DATA_HOME dir. However, it seems that both the cache and data dirs are now unnecessarily nested with another
$ ls ~/.config/strawberry ~/.cache/strawberry ~/.local/share/strawberry /home/basti/.cache/strawberry: strawberry/ /home/basti/.config/strawberry: strawberry.conf /home/basti/.local/share/strawberry: strawberry/ $ echo $XDG_CACHE_HOME $XDG_CONFIG_HOME $XDG_DATA_HOME /home/basti/.cache /home/basti/.config /home/basti/.local/share
I've noticed this issue, because I was trying to copy my custom icon set from Clementine to Strawberry and I didn't manage to get it to work. Was this feature removed? I'm using KDE Plasma with a dark macOS-Mojave-like Kvantum theme and both the default icons and my system icons don't work that nicely without a custom icon set.
There's also another issue which confused me a bit, although unrelated to the stuff mentioned above.
On the first application start, I of course started with configuring Strawberry and setting up my collection directories. To my surprise, the sidebar only listed the "Files" menu and I couldn't find the "Collection" menu at all. In confusion, I closed Strawberry, reopened it and noticed that the "Queue" menu was now listed in the sidebar, but the "Collection" menu was still missing. I kept searching for it and restarted Strawberry again and this time, a third sidebar entry appeared. On the fifth restart, it finally listed the "Collection" menu and I was able to create a new playlist from my collection.
This also leads me to the following question: Can I import my collection data / playlist from Clementine without losing any metadata like play counts, etc?
It's using standard Qt 5 paths, StandardPaths::AppLocalDataLocation for the database, icons, albumcovers etc, and QStandardPaths::CacheLocation for the cache things like the scrobbler cache.
You can place icons in ~/.local/share/strawberry/strawberry/icons (on linux) to use custom icons
As for the missing icons in the tabbar I can't reproduce any problems, but someone else reported that too, what version from git and os do you use?
You can't import the database schemas directly since they are entirely different, you need some scripts to convert them, but you can import saved playlists (with metadata).
Ah, ok, I see, it got moved from
Hm, that's a shame.