Merge pull request #1432 from mb64/master
Change order GTK3 settings.ini files are read
This commit is contained in:
commit
178c4dbb12
6
neofetch
6
neofetch
|
@ -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}*=}"
|
||||||
|
|
Reference in New Issue