#!/bin/sh

# locate the place where Qtopia is installed
if [ "$QPEDIR" = "" ]
then
    if [ -d "/opt/Qtopia" ]
    then
	QPEDIR="/opt/Qtopia"
    else
	if [ -d "/opt/QtPalmtop" ]
	then
	    QPEDIR="/opt/QtPalmtop"
	else
	    # err, better quit than doing some damage
	    exit
	fi
    fi
fi

# remove "theKompany.com" tab if needed
COUNT=`ls -1 "$QPEDIR/apps/theKompany.com/ | wc -l`
if [ "$COUNT" == "0" ]
then
    rm -Rf "$QPEDIR/apps/theKompany.com"
    #rm -f "$QPEDIR/pics/tkc.png"
fi
