--- gnome-session/gnome-wm	2007-03-01 08:21:13.000000000 -0500
+++ gnome-session/gnome-wm	2007-03-01 08:22:32.000000000 -0500
@@ -48,7 +48,7 @@
 
   KNOWN_WM="sawfish sawmill enlightenment icewm wmaker fvwm2 qvwm fvwm twm kwm"
   if [ $IS_X_COMPOSITED -eq 0 ] ; then
-    KNOWN_WM="compiz $KNOWN_WM"
+    KNOWN_WM="compiz beryl $KNOWN_WM"
   fi
   # metacity is still the default wm in GNOME
   KNOWN_WM="metacity $KNOWN_WM"
@@ -107,6 +107,10 @@
       OPT1=--sm-client-id
       OPT2=$SMID
       ;;
+    beryl)
+      OPT1=--sm-client-id
+      OPT2=$SMID
+      ;;
     #FIXME: add all other windowmanagers here with their proper options
   esac
 fi
@@ -116,6 +120,9 @@
     gtk-window-decorator &
     OPT3=gconf
     ;;
+  beryl)
+    emerald &
+    ;;
 esac
 
 exec $WINDOW_MANAGER $OPT1 $OPT2 $OPT3
