#!/bin/sh

cd /home/metauser

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

# Set password
if [ "x$X11_ENTRYPOINT_COMMAND" = "x" ]; then
    xsetroot -solid grey
    xterm -geometry 80x24+10+10 -ls -title "Desktop" /bin/bash &
else
    $X11_ENTRYPOINT_COMMAND
fi



