diff options
author | David Runge <dave@sleepmap.de> | 2016-03-11 10:59:43 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-03-11 10:59:43 +0100 |
commit | 870e2673700a6c0b909de54a9426da8aeb450959 (patch) | |
tree | d06c96b944df79cac0f90c7dc02199812512a129 /bin/sclang | |
parent | cd00174124e876da3c0822c50920b634d5a54737 (diff) | |
download | dotfiles-870e2673700a6c0b909de54a9426da8aeb450959.tar.gz dotfiles-870e2673700a6c0b909de54a9426da8aeb450959.tar.bz2 dotfiles-870e2673700a6c0b909de54a9426da8aeb450959.tar.xz dotfiles-870e2673700a6c0b909de54a9426da8aeb450959.zip |
Reversing the hostname check.
Diffstat (limited to 'bin/sclang')
-rwxr-xr-x | bin/sclang | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |