#!/bin/sh

# This is an Xsession wrapper for use with wdm to take care of the
# handling of the 'NoChange' window manager selection option.

if [ $# -eq 1 ] ; then 
  echo $1 >$HOME/.wm_style 
  shift 
fi
exec /etc/X11/Xsession `cat $HOME/.wm_style` $@
