From 65193012b9a7bff073471a2b601452c8dd4ef3d6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 22 Dec 2016 19:04:28 +1100 Subject: [PATCH] KDE: Remove kde5-config support --- neofetch | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index 6501d5fd..724f3295 100755 --- a/neofetch +++ b/neofetch @@ -2840,17 +2840,14 @@ kde_config_dir() { elif [[ -n "$KDE_CONFIG_DIR" ]]; then kde_config_dir="$KDE_CONFIG_DIR" - elif type -p kde5-config >/dev/null 2>&1; then - kde_config_dir="$(kde5-config --localprefix)" - elif type -p kde4-config >/dev/null 2>&1; then kde_config_dir="$(kde4-config --localprefix)" - elif type -p kde-config >/dev/null 2>&1; then - kde_config_dir="$(kde-config --localprefix)" - elif [[ -d "${HOME}/.kde4" ]]; then kde_config_dir="${HOME}/.kde4" + + elif type -p kde-config >/dev/null 2>&1; then + kde_config_dir="$(kde-config --localprefix)" fi }