mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Grab last occurence of '^exec x' when parsing xinit files
This commit is contained in:
4
fetch
4
fetch
@@ -705,10 +705,10 @@ getwindowmanager () {
|
||||
windowmanager="$XDG_CURRENT_DESKTOP"
|
||||
|
||||
elif [ "$XINITRC" ]; then
|
||||
windowmanager=$(grep "^[^#]*exec" "$XINITRC")
|
||||
windowmanager=$(grep "^[^#]*exec" "$XINITRC" | tail -n 1)
|
||||
|
||||
elif [ -e "$HOME/.xinitrc" ]; then
|
||||
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc")
|
||||
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc" | tail -n 1)
|
||||
|
||||
else
|
||||
case "$os" in
|
||||
|
||||
Reference in New Issue
Block a user