#!/usr/bin/bash

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

var=$(<${HOME}/.66/conf/boot-user-${USER}.conf)

for i in ${var[@]}; do
	export ${i}
done

66-all up
sleep 03

## Try consolekit
if 66-which -q ck-launch-session; then
	cmd="exec ck-launch-session $@"
else
	cmd="exec $@"
fi

## Select the session to start
${cmd} jwm
#${cmd} openbox-session
#${cmd} startkde