Use $GTK2_RC_FILES for GTK2 config if set
This commit is contained in:
parent
58e833cd10
commit
4b8e2c5e1b
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1412,8 +1412,8 @@ getstyle () {
|
||||||
|
|
||||||
# Check for gtk2 theme
|
# Check for gtk2 theme
|
||||||
if [ -z "$gtk2theme" ]; then
|
if [ -z "$gtk2theme" ]; then
|
||||||
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
if [ -f "${GTK2_RC_FILES:-$HOME/.gtkrc-2.0}" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
gtk2theme=$(grep "^[^#]*$name" "${GTK2_RC_FILES:-$HOME/.gtkrc-2.0}")
|
||||||
|
|
||||||
elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then
|
elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc)
|
gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc)
|
||||||
|
|
Loading…
Reference in a new issue