From 48d2d8cc1c780ac787c7c8aeb242228b443860d3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 1 Jul 2017 09:18:32 +1000 Subject: [PATCH] config: Add backwards compatibility with old filename. --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index a7081f77..b772d4cb 100755 --- a/neofetch +++ b/neofetch @@ -3637,7 +3637,10 @@ get_user_config() { # Check ${XDG_CONFIG_HOME}/neofetch and create the # dir/files if they don't exist. - if [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then + if [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then + config_file="${XDG_CONFIG_HOME}/neofetch/config" + + elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then config_file="${XDG_CONFIG_HOME}/neofetch/config.conf" elif [[ -f "/etc/neofetch/config.conf" ]]; then