config: fallback to /etc/xdg if XDG_CONFIG_DIRS is unset

Closes #1008
This commit is contained in:
Daniel Eklöf 2022-04-06 18:44:09 +02:00
parent 58a1ffe724
commit 20608c987b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 10 additions and 5 deletions

View file

@ -13,9 +13,10 @@ say if it needs to be reopened after any of the other sections.
foot will search for a configuration file in the following locations,
in this order:
- *XDG_CONFIG_HOME/foot/foot.ini*
- *~/.config/foot/foot.ini*
- *XDG_CONFIG_DIRS/foot/foot.ini*
- *XDG_CONFIG_HOME/foot/foot.ini* (defaulting to
*~/.config/foot/foot.ini* if unset)
- *XDG_CONFIG_DIRS/foot/foot.ini* (defaulting to
*/etc/xdg/foot/foot.ini* if unset)
# SECTION: main