use "$GTK2_RC_FILES"

This commit is contained in:
edward-p 2019-05-03 16:28:22 +08:00
parent 836197fc2e
commit d128f1cf1e
1 changed files with 1 additions and 1 deletions

View File

@ -2683,7 +2683,7 @@ get_style() {
# Check for general GTK2 Theme. # Check for general GTK2 Theme.
if [[ -z "$gtk2_theme" ]]; then if [[ -z "$gtk2_theme" ]]; then
if [[ -n "${GTK2_RC_FILES}" ]]; then if [[ -n "$GTK2_RC_FILES" ]]; then
IFS=: read -ra rc_files <<< "$GTK2_RC_FILES" IFS=: read -ra rc_files <<< "$GTK2_RC_FILES"
gtk2_theme="$(grep "^[^#]*${name}" "${rc_files[@]}")" gtk2_theme="$(grep "^[^#]*${name}" "${rc_files[@]}")"
elif [[ -f "${HOME}/.gtkrc-2.0" ]]; then elif [[ -f "${HOME}/.gtkrc-2.0" ]]; then