spotify-downloader
spotify-downloader copied to clipboard
Change config location to default on Linux
Requested Feature
Hi there,
I hope this is no duplicate, but I couldn't find another mention of this searching the issues.
spotDL's config location is $HOME/.spotdl/. However, the default location on Linux – at least on an Arch(-based) distro – would be $HOME/.config/spotdl/.
Could you consider changing this, as it helps de-cluttering user's home folder and following standard?
If not willing to change this, would you consider also checking for a config file located at $HOME/.config/spotdl/config.json? Like many, I maintain git versioning of my dotfiles and having all configs at the same (standard) place is easier and just makes sense.
Thank you for your time
Possible implementation
Read and save config from/to $HOME/.config/spotdl/.
I suppose compatibility with older setups would require checking if the $HOME/.spotdl folder exists and moving it to the new location if needed.
To add-on, yes it would be great if spotdl followed the XDG standards and placed or checked for its configs in $HOME/.config/spotdl, since its hard to use tools like stow to manage dotfiles cause of programs like spotdl
Was having issues on unraid and editing the config file, so mapped it to my appdata folder now I can see and change everything much easier. This would work with docker as well.
Hello, I would like to work on this issue for Hacktoberfest. Could you please assign it to me?
Hello, I would like to work on this issue for Hacktoberfest. Could you please assign it to me?
How funny, I was about to work on it I don't think you need to be assigned to it Just fork it, make your changes and create a pull request
Use the contributing guidelines as a guide
Hello, I would like to work on this issue for Hacktoberfest. Could you please assign it to me?
How funny, I was about to work on it I don't think you need to be assigned to it Just fork it, make your changes and create a pull request
Use the contributing guidelines as a guide
Thank you! I've already gone ahead and submitted the pull request for review here: #2514
Hmm. I just had a thought @FelixDz @ArnabTechiee.
Since the .spotdl folder holds more than the config.json (i.e. errors, temp, web/web-ui, .spotipy, cache) etc., is this the best change still to put this in the XDG_CONFIG_HOME location? Appreciate any opinions.
Hmm. I just had a thought @FelixDz @ArnabTechiee. Since the
.spotdlfolder holds more than the config.json (i.e. errors, temp, web/web-ui, .spotipy, cache) etc., is this the best change still to put this in theXDG_CONFIG_HOMElocation? Appreciate any opinions.
Yeah exactly — the code now puts config.json in ~/.config/spotdl for new installs, but still falls back to ~/.spotdl if it exists. The other stuff (cache, errors, temp, web-ui) stays together under the same base, so older setups keep working fine.
Implemented v4.4.3
Can't the other files - errors, temp, web/web-ui, .spotipy, cache - be placed in XDG_CACHE_HOME? or even XDG_DATA_HOME
Prefer to keep them all in one designated folder.