mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-06 01:40:22 -05:00
parent
58a1ffe724
commit
20608c987b
3 changed files with 10 additions and 5 deletions
6
config.c
6
config.c
|
|
@ -444,10 +444,12 @@ open_config(void)
|
|||
}
|
||||
}
|
||||
|
||||
/* Finally, try foot/foot.ini in all XDG_CONFIG_DIRS */
|
||||
/* Finally, try foot/foot.ini in all XDG_CONFIG_DIRS, or /etc/xdg
|
||||
* if unset */
|
||||
const char *xdg_config_dirs = getenv("XDG_CONFIG_DIRS");
|
||||
xdg_config_dirs_copy = xdg_config_dirs != NULL
|
||||
? strdup(xdg_config_dirs) : NULL;
|
||||
? strdup(xdg_config_dirs)
|
||||
: strdup("/etc/xdg");
|
||||
|
||||
if (xdg_config_dirs_copy != NULL) {
|
||||
for (char *save = NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue