#!/bin/sh
#
# Simple qcop launcher for the freedesktop.org desktop spec. For Qtopia apps
# that support a given mimetype we need to make sure to call setDocument(QString)
# if we actually have a file.
# qcop-x11-launch APPNAME filename
# filename is just a single as we advertise with %f in the Exec line
#
export QPEDIR=/opt/Qtopia
export PATH=$PATH:$QPEDIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QPEDIR/lib

if [ -n "$2" ]; then
    qcop service send Launcher "execute(QString,QString)" $1 $2  
else
    qcop service send Launcher "execute(QString)" $1 
fi
