#!/bin/sh
if test `id -u` -eq 0 ; then
keasycd
else
echo "KeasyCD Super User"
echo "--------------"
echo ""
echo "Allowing root user to use this display"
xhost +local:root
echo ""
echo "Logging in as super user"
su - root -c "export DISPLAY=$DISPLAY; keasycd >/dev/null"
xhost -local:root
fi
