Merge pull request #151 from iandrewt/gtk_usr_fix
added /usr/share as a gtk theme directory
This commit is contained in:
commit
a694b4e3a8
1 changed files with 7 additions and 1 deletions
8
neofetch
8
neofetch
|
@ -1397,6 +1397,9 @@ getstyle () {
|
|||
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
||||
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
||||
|
||||
elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then
|
||||
gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc)
|
||||
|
||||
elif [ -f "/etc/gtk-2.0/gtkrc" ]; then
|
||||
gtk2theme=$(grep "^[^#]*$name" /etc/gtk-2.0/gtkrc)
|
||||
fi
|
||||
|
@ -1414,7 +1417,10 @@ getstyle () {
|
|||
gtk3theme="$(gsettings get org.gnome.desktop.interface $gsettings)"
|
||||
gtk3theme=${gtk3theme//\'}
|
||||
|
||||
else
|
||||
elif [ -f "/usr/share/gtk-3.0/settings.ini" ]; then
|
||||
gtk3theme=$(grep "^[^#]*$name" /usr/share/gtk-3.0/settings.ini)
|
||||
|
||||
elif [ -f "/etc/gtk-3.0/settings.ini" ]; then
|
||||
gtk3theme=$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue