RasmusLindroth / tut

TUI for Mastodon with vim inspired keys
https://tut.anv.nu
MIT License
446 stars 29 forks source link

Not loading config from XDG_CONFIG_HOME on MacOS #268

Closed TomRobinsonIO closed 1 year ago

TomRobinsonIO commented 1 year ago

Tut is not loading the config files I have in my ~/.config/tut directory on MacOS. I've read over the issue at https://github.com/RasmusLindroth/tut/issues/236 but wasn't able to get it working.

echo $XDG_CONFIG_HOME does print /Users/tom/.config as expected. I do not have a tut folder in either my home directory or /Library/Application Support/. Loading tut with the -d flag to ~/.config/tut does load my config as expected.

Thank you for your hard work on this project and thank you in advance for your assistance.

TomRobinsonIO commented 1 year ago

My issue was my misunderstanding of the default directory defined in os#UserConfigDir. The default directory is not in /Library/Application Support/ as I had understood it, but rather $HOME/Library/Application Support/. Once I removed the tut directory from $HOME/Library/Application Support/, the config files loaded from $XDG_CONFIG_HOME/tut as expected.