xdg icon indicating copy to clipboard operation
xdg copied to clipboard

Request to include `~/.config` as a fallback `XDG_CONFIG_HOME` directory

Open Haarolean opened this issue 1 month ago • 1 comments

This has been discussed in #53 and I believe it didn't happen. Please consider this 🙏


@BlakeWilliams I think adding ~/.config as an extra location to look for config files on macOS is a good idea. I could add ~/.config at the end of the list of default config directories (i.e. the default locations for XDG_CONFIG_DIRS). That should not produce any breaking changes and xdg.SearchConfigFile would find config files at that location (assuming XDG_CONFIG_DIRS is not defined, but it should not be on macOS usually).

I think I'll make this change and include it in the next release, which is this week as I already had one planned.

Originally posted by @adrg in #53

Haarolean avatar Nov 13 '25 19:11 Haarolean

Hi @Haarolean,

I added ~/.config in the default list of XDG_CONFIG_DIRS on macOS in v0.5.1 (the current version is v0.5.3). Is there something not working for you?

adrg avatar Nov 14 '25 18:11 adrg