Grab last occurence of '^exec x' when parsing xinit files
This commit is contained in:
parent
a850702843
commit
5ddd145bdc
4
fetch
4
fetch
|
@ -705,10 +705,10 @@ getwindowmanager () {
|
||||||
windowmanager="$XDG_CURRENT_DESKTOP"
|
windowmanager="$XDG_CURRENT_DESKTOP"
|
||||||
|
|
||||||
elif [ "$XINITRC" ]; then
|
elif [ "$XINITRC" ]; then
|
||||||
windowmanager=$(grep "^[^#]*exec" "$XINITRC")
|
windowmanager=$(grep "^[^#]*exec" "$XINITRC" | tail -n 1)
|
||||||
|
|
||||||
elif [ -e "$HOME/.xinitrc" ]; then
|
elif [ -e "$HOME/.xinitrc" ]; then
|
||||||
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc")
|
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc" | tail -n 1)
|
||||||
|
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
|
|
Reference in New Issue