Merge pull request #1432 from mb64/master

Change order GTK3 settings.ini files are read
This commit is contained in:
dylan 2020-03-30 12:44:45 +03:00 committed by GitHub
commit 178c4dbb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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