numbat icon indicating copy to clipboard operation
numbat copied to clipboard

Follow XDG dirs if set on macos

Open dmmalam opened this issue 6 months ago • 1 comments

If XDG_CONFIG_HOME, or XDG_DATA_HOME are set, then use those dirs for config, and history, just like on linux. The current dirs are technically correct for macos, but many command lines tools prefer these if set, and it keeps a nice separation between gui/ and cross platform cmd apps. Also tools like pearcleaner flag the files as 'orphaned' as they can't match it to an installed App/.

dmmalam avatar Jun 20 '25 17:06 dmmalam

Related: https://github.com/dirs-dev/directories-rs/issues/47. We would probably need to switch to https://docs.rs/etcetera/latest/etcetera/index.html to fix this.

sharkdp avatar Aug 31 '25 19:08 sharkdp