From 8fe3130cbec6afefe8b43fdffa4c52938bc2e860 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 6 May 2018 16:16:27 +1000 Subject: [PATCH] gtk: Fix config file read order. Closes #972 --- neofetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index dc65de71..a702ff11 100755 --- a/neofetch +++ b/neofetch @@ -2652,11 +2652,12 @@ get_style() { if [[ -f "${GTK2_RC_FILES:-${HOME}/.gtkrc-2.0}" ]]; then gtk2_theme="$(grep "^[^#]*${name}" "${GTK2_RC_FILES:-${HOME}/.gtkrc-2.0}")" + elif [[ -f "/etc/gtk-2.0/gtkrc" ]]; then + gtk2_theme="$(grep "^[^#]*${name}" /etc/gtk-2.0/gtkrc)" + elif [[ -f "/usr/share/gtk-2.0/gtkrc" ]]; then gtk2_theme="$(grep "^[^#]*${name}" /usr/share/gtk-2.0/gtkrc)" - elif [[ -f "/etc/gtk-2.0/gtkrc" ]]; then - gtk2_theme="$(grep "^[^#]*${name}" /etc/gtk-2.0/gtkrc)" fi gtk2_theme="${gtk2_theme/${name}*=}"