summaryrefslogtreecommitdiffstats
path: root/fbbrowser/testApp.sh
diff options
context:
space:
mode:
authorNiklas Goby2011-01-14 14:21:40 +0100
committerNiklas Goby2011-01-14 14:21:40 +0100
commitad43387cfa151c24ec5ddb9beaa4bd55de3813fc (patch)
tree3b334c976c64cf22c1bed99bf3f7ecaf130666f0 /fbbrowser/testApp.sh
parentqrc missing .. (diff)
parentmore commentaries.... (diff)
downloadfbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.tar.gz
fbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.tar.xz
fbgui-ad43387cfa151c24ec5ddb9beaa4bd55de3813fc.zip
Merge branch 'master' of git.openslx.org:lsfks/master-teamprojekt/fbgui
Diffstat (limited to 'fbbrowser/testApp.sh')
-rwxr-xr-xfbbrowser/testApp.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/fbbrowser/testApp.sh b/fbbrowser/testApp.sh
new file mode 100755
index 0000000..57f37b7
--- /dev/null
+++ b/fbbrowser/testApp.sh
@@ -0,0 +1,16 @@
+#!/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.
+# This requires the fbgui git repository to be in the user's home directory.
+~/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