Follow XDG Base Directory Specification
Approver's checklist:
-
The author has submitted the FSF Copyright Assignment and is listed in AUTHORS -
There is a test suite reasonably covering new functionality or modifications -
Function naming, parameters, return values, types, etc., are consistent with existing code -
This feature/change has adequate documentation added (if appropriate) -
No obvious mistakes / misspelling in the code -
Add a fallback to ~/.wget2rc
and move it to$XDG_CONFIG_HOME
along with a warning
So, this is going to be a little controversial. This set of patches makes Wget2 follow the XDG Base Directory Specification.
However, one effect of doing so means, I've eliminated ~/.wget2rc
in favour of ~/.config/wget/wget2rc
as the location for the initialization file.
I think this is a good approach moving forward. And it is okay for us to currently make some incompatible changes before the first full release of Wget2.
Edited by Darshit Shah