This commit is contained in:
dylan araps 2016-01-03 23:45:08 +11:00
parent ac3d1f6c6b
commit 572062d98b
1 changed files with 3 additions and 1 deletions

View File

@ -263,7 +263,9 @@ getshell () {
# Get window manager
getwindowmanager () {
if [ -e "$HOME/.xinitrc" ]; then
if [ ! -z "${XDG_CURRENT_DESKTOP}" ]; then
windowmanager="${XDG_CURRENT_DESKTOP}"
elif [ -e "$HOME/.xinitrc" ]; then
xinitrc=$(awk '/^[^#]*exec/ {print $2}' "${HOME}/.xinitrc")
windowmanager="${xinitrc/-session/}"
else