summaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-06-19 18:27:48 +0200
committerJonathan Bauer2011-06-19 18:27:48 +0200
commited226848f447ab4a5aed93b1acf95390a6ac856d (patch)
treed86280d2b80d61369d9b5dbe0dadecb18184e608 /run.sh
parenttypo, sortof (diff)
downloadfbsplash-ed226848f447ab4a5aed93b1acf95390a6ac856d.tar.gz
fbsplash-ed226848f447ab4a5aed93b1acf95390a6ac856d.tar.xz
fbsplash-ed226848f447ab4a5aed93b1acf95390a6ac856d.zip
Layout using QT's external UI definition file
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index d679a44..856da9e 100755
--- a/run.sh
+++ b/run.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+# set your QT version here
+QT_VERSION=4.7.2
+
# path to script (including script name)
script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
@@ -9,9 +12,11 @@ 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 display_id
-/usr/local/Trolltech/Qt-4.7.2/bin/qvfb -width 1024 -height 768 -qwsdisplay :$display_id &
+/usr/local/Trolltech/Qt-$QT_VERSION/bin/qvfb -width 1024 -height 768 -qwsdisplay :$display_id &
+
# quick sleep to wait for qvfb loading
sleep 0.2
+
# Start fbsplash connected to QVFb with display_id from above.
$working_path/build/fbsplash -display QVFb:$display_id $@
killall qvfb