Added support for '$XINITRC' to getwindowmanager
This commit is contained in:
parent
45b96fa550
commit
7619f71549
1 changed files with 8 additions and 4 deletions
12
fetch
12
fetch
|
@ -600,11 +600,11 @@ getwindowmanager () {
|
|||
elif [ "$XDG_CURRENT_DESKTOP" ]; then
|
||||
windowmanager="$XDG_CURRENT_DESKTOP"
|
||||
|
||||
elif [ "$XINITRC" ]; then
|
||||
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc")
|
||||
|
||||
elif [ -e "$HOME/.xinitrc" ]; then
|
||||
xinitrc=$(grep "^[^#]*exec" "${HOME}/.xinitrc")
|
||||
windowmanager="${xinitrc/exec }"
|
||||
windowmanager="${windowmanager/-session}"
|
||||
windowmanager="${windowmanager^}"
|
||||
windowmanager=$(grep "^[^#]*exec" "${HOME}/.xinitrc")
|
||||
|
||||
else
|
||||
case "$os" in
|
||||
|
@ -622,6 +622,10 @@ getwindowmanager () {
|
|||
|
||||
esac
|
||||
fi
|
||||
|
||||
windowmanager="${windowmanager/exec }"
|
||||
windowmanager="${windowmanager/-session}"
|
||||
windowmanager="${windowmanager^}"
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue