summaryrefslogtreecommitdiffstats
path: root/src/testApp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-01-25 17:16:40 +0100
committerJonathan Bauer2011-01-25 17:16:40 +0100
commit39e919c5b915934a81a1fa5143df813d3dda801b (patch)
tree209e19bbe43ae738a127a61ef69ea70b528dc0a8 /src/testApp.sh
parentfbgui.o removed (diff)
downloadfbgui-39e919c5b915934a81a1fa5143df813d3dda801b.tar.gz
fbgui-39e919c5b915934a81a1fa5143df813d3dda801b.tar.xz
fbgui-39e919c5b915934a81a1fa5143df813d3dda801b.zip
updated
Diffstat (limited to 'src/testApp.sh')
-rwxr-xr-xsrc/testApp.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testApp.sh b/src/testApp.sh
new file mode 100755
index 0000000..0995695
--- /dev/null
+++ b/src/testApp.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# This script now needs to have the URL to load as an argument.
+if [ $# = 0 ]; then
+ echo "No URL passed, exiting..."
+ exit
+fi
+# Start QT's virtual framebuffer
+/usr/local/Trolltech/Qt-4.7.1/bin/qvfb -width 800 -height 600 &
+# Wait for it to load (needed?)
+sleep 1
+# Start the fbbrowser app.
+# This requires the fbgui git repository to be in the user's home directory.
+export PATH=~/fbgui/fbbrowser/:$PATH
+fbgui -qws $1
+# Check if fbbrowser is not running, if so kill the qvfb.
+if [ $(ps aux | grep -v grep | grep -c fbgui) -eq 1 ]
+then
+ echo "fbgui is still running ..."
+else
+ echo "fbgui stopped running, killing qvfb ..."
+ killall qvfb
+fi