From 3945ea6537a8f1c23c74c65b008a8d6079e873ab Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 16 Mar 2011 10:59:59 +0100 Subject: DM now appends download index to filename in case file already exists --- src/testApp.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/testApp.sh') diff --git a/src/testApp.sh b/src/testApp.sh index 4e80f5a..444636b 100755 --- a/src/testApp.sh +++ b/src/testApp.sh @@ -3,19 +3,17 @@ # Use: ./testApp.sh [OPTIONS] # OPTIONS: -D, --debug # -u , --url= -# -d , --downloaddir= (dir relative) +# -d , --download= absolute dir for downloads. +# -c , --config= path to config file. # script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" - # to get the path only - not the script name - add working_path=`dirname "$script_path"` display_id=$(grep -n $(whoami) /etc/passwd| head -n 1|awk -F : '{print $1}') - # Start QT's virtual framebuffer with proper displayID /usr/local/Trolltech/Qt-4.7.1/bin/qvfb -width 800 -height 600 -qwsdisplay :$display_id & sleep 0.1 # Start fbgui. -echo "$working_path/fbgui -display QVFb:$display_id $@" $working_path/fbgui -display QVFb:$display_id $@ # Check if fbbrowser is not running, if so kill the qvfb. if [ $(ps aux | grep -v grep | grep -c fbgui) -eq 1 ] -- cgit v1.2.3-55-g7522