#!/bin/sh if [ `expr match "$1" "/*"` -eq 1 ] then fullpath=$1 else fullpath="$PWD/$1" fi openme="file://$fullpath" if [ -r $fullpath ] then run-standalone.sh dbus-send --print-reply \ --dest=com.nokia.osso_pdfviewer /com/nokia/osso_pdfviewer \ com.nokia.osso_pdfviewer.mime_open string:$openme else echo "could not read file $fullpath" fi