From d5a87dcc0e8a23fdba2c74c95750bd103f8d4df1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 26 Nov 2013 22:39:00 +0100 Subject: Updated local sclang to /bin/sh and usage of hostname --- bin/sclang | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/sclang') 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 -- cgit v1.2.3-70-g09d2