From 870e2673700a6c0b909de54a9426da8aeb450959 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 11 Mar 2016 10:59:43 +0100 Subject: Reversing the hostname check. --- bin/sclang | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/sclang') diff --git a/bin/sclang b/bin/sclang index a34f4ea..937ce94 100755 --- a/bin/sclang +++ b/bin/sclang @@ -1,10 +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 +if [[ $HOSTNAME == *pitheunlord* ]]; then 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 "$@" +else + echo "/usr/bin/sclang" + /usr/bin/sclang "$@" fi -- cgit v1.2.3-70-g09d2