summaryrefslogtreecommitdiffstats
path: root/src/testApp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-16 10:59:59 +0100
committerJonathan Bauer2011-03-16 10:59:59 +0100
commit3945ea6537a8f1c23c74c65b008a8d6079e873ab (patch)
tree9487cd7920916010d1dac3bce551a3fd91956b1c /src/testApp.sh
parentmisc (diff)
downloadfbgui-3945ea6537a8f1c23c74c65b008a8d6079e873ab.tar.gz
fbgui-3945ea6537a8f1c23c74c65b008a8d6079e873ab.tar.xz
fbgui-3945ea6537a8f1c23c74c65b008a8d6079e873ab.zip
DM now appends download index to filename in case file already exists
Diffstat (limited to 'src/testApp.sh')
-rwxr-xr-xsrc/testApp.sh6
1 files changed, 2 insertions, 4 deletions
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>, --url=<url>
-# -d <dir>, --downloaddir=<dir> (dir relative)
+# -d <dir>, --download=<dir> absolute dir for downloads.
+# -c <path>, --config=<path> 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 ]