Merge pull request #151 from iandrewt/gtk_usr_fix

added /usr/share as a gtk theme directory
This commit is contained in:
Dylan Araps 2016-03-16 21:20:03 +11:00
commit a694b4e3a8
1 changed files with 7 additions and 1 deletions

View File

@ -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