support XDG_CONFIG_HOME (closes #1545)

This will only load either
${XDG_CONFIG_HOME}/gallery-dl/config.json or
${HOME}/.config/gallery-dl/config.json
if XDG_CONFIG_HOME is empty, never both.
This commit is contained in:
Mike Fährmann
2021-05-16 01:12:37 +02:00
parent 41457dbb1b
commit 3a7c3ff138
2 changed files with 4 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ Windows:
Linux, macOS, etc.:
* ``/etc/gallery-dl.conf``
* ``${XDG_CONFIG_HOME}/gallery-dl/config.json``
* ``${HOME}/.config/gallery-dl/config.json``
* ``${HOME}/.gallery-dl.conf``