jaspervdj / patat

Terminal-based presentations using Pandoc
GNU General Public License v2.0
2.37k stars 60 forks source link

Read configuration from XDG standard directory #146

Closed jaspervdj closed 9 months ago

jaspervdj commented 9 months ago

The per-user patat configuration file was $HOME/.patat.yaml, which does not follow the XDG standard. We now support $XDG_CONFIG_DIRECTORY/patat/config.yaml (typically $XDG_CONFIG_DIRECTORY is set to $HOME/.config) which is compliant with the standard.

Note that $HOME/.patat.yaml is still supported for backward-compatibility, but anything in $XDG_CONFIG_DIRECTORY takes precedence.