summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2011-01-21 17:49:00 +0100
committerJonathan Bauer2011-01-21 17:49:00 +0100
commit07a18a0152dc7dfc70c79a89317a89713ae2f8ca (patch)
tree84ffae5b098f26a315681ac986eb0463afe87946
parentsome comments... (diff)
downloadfbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.tar.gz
fbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.tar.xz
fbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.zip
testApp.sh now needs the URL as parameter, about time...
-rwxr-xr-xfbbrowser/testApp.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/fbbrowser/testApp.sh b/fbbrowser/testApp.sh
index 5e1c316..5809507 100755
--- a/fbbrowser/testApp.sh
+++ b/fbbrowser/testApp.sh
@@ -1,11 +1,16 @@
#!/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.
-~/fbgui/fbbrowser/fbbrowser -qws http://1234.500.1
+~/fbgui/fbbrowser/fbbrowser -qws $1
# Check if fbbrowser is not running, if so kill the qvfb.
if [ $(ps aux | grep -v grep | grep -c fbbrowser) -eq 1 ]
then