summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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