aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-11-26 22:39:00 +0100
committerDavid Runge <david.runge@frqrec.com>2013-11-26 22:39:00 +0100
commitd5a87dcc0e8a23fdba2c74c95750bd103f8d4df1 (patch)
tree62d158c8b7b8094e8ee24a3f5df62b290766528d
parentaf50d39e01b3801b40bb9364668226bcfe154d05 (diff)
downloaddotfiles-d5a87dcc0e8a23fdba2c74c95750bd103f8d4df1.tar.gz
dotfiles-d5a87dcc0e8a23fdba2c74c95750bd103f8d4df1.tar.bz2
dotfiles-d5a87dcc0e8a23fdba2c74c95750bd103f8d4df1.tar.xz
dotfiles-d5a87dcc0e8a23fdba2c74c95750bd103f8d4df1.zip
Updated local sclang to /bin/sh and usage of hostname
-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