darkhz / invidtui

A TUI based Invidious client
MIT License
191 stars 6 forks source link

cmd/config.go: enhanced config directory handling (#27) #30

Closed nnzv closed 9 months ago

nnzv commented 10 months ago

I've improved the handling of config directories by utilizing os.UserConfigDir() for better cross-compatibility. This change aligns with Go version 1.17, and the function, available since version 1.13, ensures reliable performance. Also conducted thorough testing on Unix systems and expect this enhancement to work seamlessly on other platforms.

This change resolves issue #27.

CC: @darkhz

darkhz commented 9 months ago

An alternate implementation of your pull request will be committed to the branch in the next release. I will close this pull request.

darkhz commented 7 months ago

The commit is here, for your reference: https://github.com/darkhz/invidtui/commit/4bdcaa1ec2a17212477605747dac66fd5178e1e4