#!/bin/sh
echo "KFM Super User"
echo "--------------"
echo ""
echo "Allowing ALL (!) local users to use this display"
xhost +local:
echo ""
echo "Logging in as super user"

# Test KDEDIR first, otherwise use hardcoded path (allows to move the KDE dir)
if test -f $KDEDIR/bin/kfm ; then
 kfm=$KDEDIR/bin/kfm
else
 kfm=/opt/kde/bin/kfm
fi
su - root -c "DISPLAY=$DISPLAY; export DISPLAY; $kfm -sw >/dev/null"
xhost -local:

