diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:49:43 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:52:22 +0000 |
| commit | 7b16802972ec93db3c584488b89b1c40f31d5d27 (patch) | |
| tree | 97fd3b80553dd184757623017c91790fb1895616 /config.c | |
| parent | completions: zsh: foot: fix default path of foot.ini (diff) | |
config: remove support for loading configuration from footrc
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -272,7 +272,6 @@ static struct config_file open_config(struct config *conf) { struct config_file ret = {.path = NULL, .fd = -1}; - bool log_deprecation = false; path_components_t components = tll_init(); @@ -311,12 +310,6 @@ open_config(struct config *conf) } } - /* Next try footrc */ - if (tll_length(components) > 0 && try_open_file(&components, "footrc")) { - log_deprecation = true; - goto done; - } - /* Finally, try foot/foot.ini in all XDG_CONFIG_DIRS */ const char *xdg_config_dirs = getenv("XDG_CONFIG_DIRS"); xdg_config_dirs_copy = xdg_config_dirs != NULL @@ -357,23 +350,6 @@ out: done: assert(tll_length(components) > 0); ret = path_components_to_config_file(&components); - - if (log_deprecation && ret.path != NULL) { - LOG_WARN("deprecated: configuration in $XDG_CONFIG_HOME/footrc, " - "use $XDG_CONFIG_HOME/foot/foot.ini instead"); - - char *text = xstrdup( - "configuration in \033[31m$XDG_CONFIG_HOME/footrc\033[39m or " - "\033[31m~/.config/footrc\033[39m, " - "use \033[32m$XDG_CONFIG_HOME/foot/foot.ini\033[39m or " - "\033[32m~/.config/foot/foot.ini\033[39m instead"); - - struct user_notification deprecation = { - .kind = USER_NOTIFICATION_DEPRECATED, - .text = text, - }; - tll_push_back(conf->notifications, deprecation); - } goto out; } |
