blob: 937ce9444e1b8a47ffdddb26714ca1b249f64936 (
plain)
1
2
3
4
5
6
7
8
9
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 == *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
|