aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ti/matrix-gui-common/browser
blob: b5202d5a14632ad50c19c8f35e598d964b5eb304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

BROWSERDIR=""
BROWSERAPP="browser"

#Check if DISPLAY is set.  If so we assume we are running in X11
#and will call the X11 version of the browser if it exists.
if [ "$DISPLAY" == "" ]
then
    BROWSERDIR="/usr/bin/qtopia/demos/browser"
else
    BROWSERDIR="/usr/bin/qt4/demos/browser"
fi

if [ -e "$BROWSERDIR/$BROWSERAPP" ]
then
    cd $BROWSERDIR
    ./$BROWSERAPP
fi