From 07a18a0152dc7dfc70c79a89317a89713ae2f8ca Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 21 Jan 2011 17:49:00 +0100 Subject: testApp.sh now needs the URL as parameter, about time... --- fbbrowser/testApp.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522