aboutsummaryrefslogtreecommitdiffstats
path: root/bin/sclang
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sclang')
-rwxr-xr-xbin/sclang10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/sclang b/bin/sclang
new file mode 100755
index 0000000..a34f4ea
--- /dev/null
+++ b/bin/sclang
@@ -0,0 +1,10 @@
+#!/bin/sh
+# If not running my laptop (with X screen), run sclang in a xvfb environment.
+# This ensures getting around a bug with QPixmaps that needs a X server to run.
+if [[ $HOSTNAME == *dvzrv* ]]; then
+ echo "/usr/bin/sclang"
+ /usr/bin/sclang "$@"
+else
+ echo "/usr/bin/sclang in fake X screen"
+ /usr/bin/xvfb-run -s "-screen 1, 1280x800x24" -a -e ~/.log/xvfb-run-sclang.error /usr/bin/sclang "$@"
+fi