diff options
author | Jonathan Bauer | 2011-03-04 21:20:57 +0100 |
---|---|---|
committer | Jonathan Bauer | 2011-03-04 21:20:57 +0100 |
commit | a3a24f9efe4971da05900eb1c75e365293c5d0c3 (patch) | |
tree | 8d6e4df349e04a65778b45619f42778cd3e083f1 /src/testApp.sh | |
parent | Progress bar for downloads (using jQuery) fixed (diff) | |
download | fbgui-a3a24f9efe4971da05900eb1c75e365293c5d0c3.tar.gz fbgui-a3a24f9efe4971da05900eb1c75e365293c5d0c3.tar.xz fbgui-a3a24f9efe4971da05900eb1c75e365293c5d0c3.zip |
default url for testApp.sh
Diffstat (limited to 'src/testApp.sh')
-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 |