Change order GTK3 settings.ini files are read

This commit is contained in:
Mark Barbone 2020-03-30 04:26:13 -04:00
parent 7e9d499428
commit d9389a1f51
No known key found for this signature in database
GPG Key ID: 98FD30A444706A22
1 changed files with 3 additions and 3 deletions

View File

@ -2984,11 +2984,11 @@ get_style() {
elif type -p gsettings >/dev/null; then
gtk3_theme="$(gsettings get org.gnome.desktop.interface "$gsettings")"
elif [[ -f "/usr/share/gtk-3.0/settings.ini" ]]; then
gtk3_theme="$(grep "^[^#]*$name" /usr/share/gtk-3.0/settings.ini)"
elif [[ -f "/etc/gtk-3.0/settings.ini" ]]; then
gtk3_theme="$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini)"
elif [[ -f "/usr/share/gtk-3.0/settings.ini" ]]; then
gtk3_theme="$(grep "^[^#]*$name" /usr/share/gtk-3.0/settings.ini)"
fi
gtk3_theme="${gtk3_theme/${name}*=}"