diff options
Diffstat (limited to 'recipes/ti/matrix-gui-common/browser')
-rw-r--r-- | recipes/ti/matrix-gui-common/browser | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/ti/matrix-gui-common/browser b/recipes/ti/matrix-gui-common/browser new file mode 100644 index 0000000000..b5202d5a14 --- /dev/null +++ b/recipes/ti/matrix-gui-common/browser @@ -0,0 +1,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 + |