summaryrefslogtreecommitdiffstats
path: root/firstboot-windowmanager
blob: b4fb12cf0a2dbd6f69bbe65e71a683e5c437fc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# This is the list of supported window manager binaries
WMS=("metacity" "kwin" "xfwm4" "openbox" "marco")

for WM in ${WMS[@]}; do
    FILE=$(which $WM 2>/dev/null)
    FOUND=$?

    if [ $FOUND -eq 0 -a -x "$FILE" ]; then
        exec "$FILE" "$@"
    fi
done

# No known window manager found
exit 1