diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-16 19:28:34 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-16 19:28:34 -0400 |
commit | c24210e06c187d7668adde70625047478d9b2136 (patch) | |
tree | 248cfa93a8f12364a972e27bed3af3712eacb38e | |
parent | Unicode support. (diff) | |
download | ServerExecute-c24210e06c187d7668adde70625047478d9b2136.tar.xz ServerExecute-c24210e06c187d7668adde70625047478d9b2136.zip |
Add headless wrapper example.
-rwxr-xr-x | headless-wrapper-example.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/headless-wrapper-example.sh b/headless-wrapper-example.sh new file mode 100755 index 0000000..86f86cb --- /dev/null +++ b/headless-wrapper-example.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# This is an example script for launching +# ServerExecute on systems without an X +# server, a very common use case. +# +# This makes use of Xvfb, since an unpatched +# QtWebKit requires an X server to be running. +# You may also patch your QtWebKit to not +# require X. +# +# Adjust paths as needed and include any +# other initialization you see fit. + +cd $(dirname $0) + +export DISPLAY=":$RANDOM" + +Xvfb $DISPLAY >/dev/null 2>/dev/null & + +./ServerExecute $@ + +kill $(jobs -p) 2>/dev/null >/dev/null |