Skip to content

Commit 98da258

Browse files
committed
mate-wm: ignore wrong user setting from dconf
1 parent 7fbf3b6 commit 98da258

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

data/mate-wm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ if [ "x$WINDOW_MANAGER" = "xcompiz" -o "x$DEFWM" = "xcompiz" ]; then
5858
fi
5959
fi
6060

61+
# Check WINDOW_MANAGER exists
62+
if [ -n "$WINDOW_MANAGER" ] ; then
63+
if ! command -v "$WINDOW_MANAGER" > /dev/null 2>&1; then
64+
echo "Window manager $WINDOW_MANAGER executable not found."
65+
WINDOW_MANAGER=""
66+
fi
67+
fi
68+
6169
# Avoid looping if the session configuration tells us to use mate-wm or if
6270
# the user forces mate-wm via WINDOW_MANAGER
6371
if [ "x$WINDOW_MANAGER" = "xmate-wm" ]; then

0 commit comments

Comments
 (0)