aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sclang7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/sclang b/bin/sclang
index 5893bb3..6613581 100755
--- a/bin/sclang
+++ b/bin/sclang
@@ -1,6 +1,7 @@
-#!/bin/zsh
-echo "$HOST"
-if [[ $HOST == *dvzrv* ]]; then
+#!/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