diff options
| author | Jonathan Bauer | 2011-01-21 17:49:00 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-01-21 17:49:00 +0100 |
| commit | 07a18a0152dc7dfc70c79a89317a89713ae2f8ca (patch) | |
| tree | 84ffae5b098f26a315681ac986eb0463afe87946 /fbbrowser | |
| parent | some comments... (diff) | |
| download | fbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.tar.gz fbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.tar.xz fbgui-07a18a0152dc7dfc70c79a89317a89713ae2f8ca.zip | |
testApp.sh now needs the URL as parameter, about time...
Diffstat (limited to 'fbbrowser')
| -rwxr-xr-x | fbbrowser/testApp.sh | 7 |
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 |
