summaryrefslogtreecommitdiffstats
path: root/fbbrowser/testApp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-01-13 16:02:26 +0100
committerJonathan Bauer2011-01-13 16:02:26 +0100
commit0e0f78882d2a6d5da20b82557ff8a63738d6c14a (patch)
treed078586cdabec778ea90fc563fb297783b88c79d /fbbrowser/testApp.sh
parenteinige kommentare hingefügt... (diff)
downloadfbgui-0e0f78882d2a6d5da20b82557ff8a63738d6c14a.tar.gz
fbgui-0e0f78882d2a6d5da20b82557ff8a63738d6c14a.tar.xz
fbgui-0e0f78882d2a6d5da20b82557ff8a63738d6c14a.zip
Script for testing the app ine one go...
Diffstat (limited to 'fbbrowser/testApp.sh')
-rwxr-xr-xfbbrowser/testApp.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/fbbrowser/testApp.sh b/fbbrowser/testApp.sh
new file mode 100755
index 0000000..4041cf3
--- /dev/null
+++ b/fbbrowser/testApp.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.
+/home/joe/fbgui/fbbrowser/fbbrowser -qws
+# Check if fbbrowser is not running, if so kill the qvfb.
+if ps aux | grep -v grep | grep fbbrowser > /dev/null
+then
+ echo "fbbrowser is still running ..."
+else
+ echo "fbbrowser stopped running, killing qvfb ..."
+ killall qvfb
+fi