putio-cli icon indicating copy to clipboard operation
putio-cli copied to clipboard

Unnecessary verbose dotfile

Open Jzarecta opened this issue 11 years ago • 3 comments

i would recomend to hold a dot file with a simpler, more manageable way (think wgetrc or vimrc). Having a ~/.putiocli might do the trick just as well.

Jzarecta avatar Nov 22 '14 06:11 Jzarecta

Can you explain what is too verbose about it, please? It seems to capture the minimum of information.

dingram avatar Nov 24 '14 08:11 dingram

Sorry I just think a a directory was unnecesary, also seems off that the path is hardcoded in the code. Should be loaded off some variable at the top of the script IMHO.

Jzarecta avatar Nov 24 '14 09:11 Jzarecta

Ah, so it's the path that's a problem? I guess ~/.config/putiocli might be acceptable, but I was following the XDG Base Directory Specification when putting it in ~/.config/.

You're definitely right that the path should be loaded from a variable. It should also honor $XDG_CONFIG_HOME rather than always using a hardcoded value.

dingram avatar Nov 26 '14 02:11 dingram