Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
b9b11ed4
Unverified
Commit
b9b11ed4
authored
May 03, 2019
by
black
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1226 from edward-p/fix-GTK2_RC_FILES
Handle GTK2_RC_FILES with multiple values
parents
0f80628b
d128f1cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
neofetch
neofetch
+6
-3
No files found.
neofetch
View file @
b9b11ed4
...
@@ -2725,8 +2725,11 @@ get_style() {
...
@@ -2725,8 +2725,11 @@ get_style() {
# Check for general GTK2 Theme.
# Check for general GTK2 Theme.
if [[ -z "$gtk2_theme" ]]; then
if [[ -z "$gtk2_theme" ]]; then
if [[ -f "${GTK2_RC_FILES:-${HOME}/.gtkrc-2.0}" ]]; then
if [[ -n "$GTK2_RC_FILES" ]]; then
gtk2_theme="$(grep "^[^#]*${name}" "${GTK2_RC_FILES:-${HOME}/.gtkrc-2.0}")"
IFS=: read -ra rc_files <<< "$GTK2_RC_FILES"
gtk2_theme="$(grep "^[^#]*${name}" "${rc_files[@]}")"
elif [[ -f "${HOME}/.gtkrc-2.0" ]]; then
gtk2_theme="$(grep "^[^#]*${name}" "${HOME}/.gtkrc-2.0")"
elif [[ -f "/etc/gtk-2.0/gtkrc" ]]; then
elif [[ -f "/etc/gtk-2.0/gtkrc" ]]; then
gtk2_theme="$(grep "^[^#]*${name}" /etc/gtk-2.0/gtkrc)"
gtk2_theme="$(grep "^[^#]*${name}" /etc/gtk-2.0/gtkrc)"
...
@@ -2736,7 +2739,7 @@ get_style() {
...
@@ -2736,7 +2739,7 @@ get_style() {
fi
fi
gtk2_theme="${gtk2_theme/${name}*=}"
gtk2_theme="${gtk2_theme/
*
${name}*=}"
fi
fi
# Check for general GTK3 Theme.
# Check for general GTK3 Theme.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment