summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2013-02-28 14:07:35 +0100
committerMartin Sivak <msivak@redhat.com>2013-02-28 14:07:35 +0100
commit572a7f65b8c752dcf4a14106896812949d358c6a (patch)
tree382d6fa26c1b0de2ff011c022070f1a78e7b62cd
parent48ac459c3a769fe6e95459fa4c8e0ab7c8743a88 (diff)
downloadfirstboot2-572a7f65b8c752dcf4a14106896812949d358c6a.tar.gz
firstboot2-572a7f65b8c752dcf4a14106896812949d358c6a.tar.xz
firstboot2-572a7f65b8c752dcf4a14106896812949d358c6a.zip
Fix the window manager script
-rwxr-xr-xfirstboot-windowmanager16
1 files changed, 12 insertions, 4 deletions
diff --git a/firstboot-windowmanager b/firstboot-windowmanager
index ede6fa9..b4fb12c 100755
--- a/firstboot-windowmanager
+++ b/firstboot-windowmanager
@@ -1,8 +1,16 @@
#!/bin/sh
-WMS="metacity"
-for WM in $WMS; do
- FILE=$(which $WM)
- if [ -x "$FILE" ]; then
+
+# 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