mjl- / duit

pure go, cross-platform, MIT-licensed ui toolkit for developers
MIT License
951 stars 38 forks source link

AppDataDir is wrong for Linux/unix #14

Closed andwj closed 3 years ago

andwj commented 6 years ago

In Linux, and unix in general, it is considered quite rude to create a file or directory in $HOME which does not begin with a dot.

Hence you should use $HOME/.config instead of $HOME/lib for the AppDataDir. This would be consistent with Debian policy, the XDG Base Directory Specification, etc...

mjl- commented 3 years ago

fixed in latest version, by using os.UserConfigDir

mjl- commented 3 years ago

thanks for reporting!