mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
use "$GTK2_RC_FILES"
This commit is contained in:
2
neofetch
2
neofetch
@@ -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
|
||||||
|
Reference in New Issue
Block a user