spotify-downloader icon indicating copy to clipboard operation
spotify-downloader copied to clipboard

Change config location to default on Linux

Open FelixDz opened this issue 5 months ago • 1 comments
trafficstars

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.

FelixDz avatar Jun 07 '25 00:06 FelixDz

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

aniruddhgutta avatar Jun 08 '25 08:06 aniruddhgutta

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.

Image

evilpig avatar Aug 14 '25 03:08 evilpig

Hello, I would like to work on this issue for Hacktoberfest. Could you please assign it to me?

ArnabTechiee avatar Oct 02 '25 18:10 ArnabTechiee

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

Ogoruwa avatar Oct 02 '25 19:10 Ogoruwa

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

ArnabTechiee avatar Oct 02 '25 22:10 ArnabTechiee

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.

Silverarmor avatar Oct 02 '25 23:10 Silverarmor

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.

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.

ArnabTechiee avatar Oct 02 '25 23:10 ArnabTechiee

Implemented v4.4.3

Silverarmor avatar Oct 08 '25 10:10 Silverarmor

Can't the other files - errors, temp, web/web-ui, .spotipy, cache - be placed in XDG_CACHE_HOME? or even XDG_DATA_HOME

aniruddhgutta avatar Oct 09 '25 01:10 aniruddhgutta

Prefer to keep them all in one designated folder.

Silverarmor avatar Oct 10 '25 11:10 Silverarmor