summaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorJonathan Bauer2011-06-20 16:57:52 +0200
committerJonathan Bauer2011-06-20 16:57:52 +0200
commit1f55ffeef1201b7633addc14371eee32f1e07ce4 (patch)
tree717e0d23cb3ec9311701e2f59fe90a07e92558c1 /run.sh
parentminor changes (diff)
downloadfbsplash-1f55ffeef1201b7633addc14371eee32f1e07ce4.tar.gz
fbsplash-1f55ffeef1201b7633addc14371eee32f1e07ce4.tar.xz
fbsplash-1f55ffeef1201b7633addc14371eee32f1e07ce4.zip
new ui, loading external png's now
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 856da9e..a502a45 100755
--- a/run.sh
+++ b/run.sh
@@ -2,6 +2,11 @@
# set your QT version here
QT_VERSION=4.7.2
+# qvfb's width
+QVFB_WIDTH=640
+# qvfb's height
+QVFB_HEIGHT=480
+
# path to script (including script name)
script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
@@ -12,7 +17,7 @@ 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-$QT_VERSION/bin/qvfb -width 1024 -height 768 -qwsdisplay :$display_id &
+/usr/local/Trolltech/Qt-$QT_VERSION/bin/qvfb -width $QVFB_WIDTH -height $QVFB_HEIGHT -qwsdisplay :$display_id &
# quick sleep to wait for qvfb loading
sleep 0.2