From a3a24f9efe4971da05900eb1c75e365293c5d0c3 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 4 Mar 2011 21:20:57 +0100 Subject: default url for testApp.sh --- src/testApp.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/testApp.sh') diff --git a/src/testApp.sh b/src/testApp.sh index d551248..fc2bf05 100755 --- a/src/testApp.sh +++ b/src/testApp.sh @@ -1,8 +1,9 @@ #!/bin/sh # This script now needs to have the URL to load as an argument. if [ $# = 0 ]; then - echo "No URL passed, exiting..." - exit + url="http://132.230.4.3/webkitTest.html" +else + url=$1 fi script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" @@ -17,7 +18,7 @@ display_id=$(grep -n $(whoami) /etc/passwd| head -n 1|awk -F : '{print $1}') sleep 1 # Start the fbbrowser app. # This requires the fbgui git repository to be in the user's home directory. -$working_path/fbgui -qws -display QVFb:$display_id $1 +$working_path/fbgui -qws -display QVFb:$display_id $url # Check if fbbrowser is not running, if so kill the qvfb. if [ $(ps aux | grep -v grep | grep -c fbgui) -eq 1 ] then -- cgit v1.2.3-55-g7522