From 4b8e2c5e1b71a273576a714b6ccbe9b85e2d3270 Mon Sep 17 00:00:00 2001 From: onespaceman Date: Sat, 26 Mar 2016 15:04:59 -0400 Subject: [PATCH] Use $GTK2_RC_FILES for GTK2 config if set --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 8fbc31c2..da2096f5 100755 --- a/neofetch +++ b/neofetch @@ -1412,8 +1412,8 @@ getstyle () { # Check for gtk2 theme if [ -z "$gtk2theme" ]; then - if [ -f "$HOME/.gtkrc-2.0" ]; then - gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0") + if [ -f "${GTK2_RC_FILES:-$HOME/.gtkrc-2.0}" ]; then + gtk2theme=$(grep "^[^#]*$name" "${GTK2_RC_FILES:-$HOME/.gtkrc-2.0}") elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc)