diff options
-rwxr-xr-x | src/testApp.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 |