#!/bin/sh

export HFILE_PATH=/usr/local/share/harmonics.tcd

if [ ! -f $HOME/.disableXTidedisclaimer ]; then
 touch $HOME/.disableXTidedisclaimer
fi

case "$1" in
 start)
   xttpd 9100
   echo "xttpd started on port 9100"
   ;;
 launch)
   xttpd 9100
   echo "xttpd started on port 9100"
   echo "Launching Opera..."
   qcop "QPE/System" "execute(QString,QString)" opera "http://localhost:9100"
   ;;
 stop)
   killall xttpd
   echo "xttpd stopped"
   ;;
 *) tide "$@";;
esac

