X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=run%2Fdcpomatic;h=429139dac3794494b938f6f76e746449e840cbf3;hb=d7abedac1b4ff6564f656fcc99ea222bfa6901a2;hp=6de2989ae35a05ed10bf60b6099078d04db10d1a;hpb=04d1b65e44680fb7d715bdc37a0ed8c8d0e214d2;p=dcpomatic.git diff --git a/run/dcpomatic b/run/dcpomatic index 6de2989ae..429139dac 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -1,11 +1,9 @@ #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -build=$DIR/../build -export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/Users/ci/osx-environment/x86_64/10.10/lib -export DCPOMATIC_GRAPHICS=$DIR/../graphics +source $DIR/environment binary=$build/src/tools/dcpomatic2 + if [ "$1" == "--debug" ]; then shift gdb --args $binary $* @@ -31,5 +29,5 @@ elif [ "$1" == "--screenshot" ]; then shift GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary "$*" else - $binary $* + $binary $* 2> >(grep -v Gtk-CRITICAL | grep -v Gtk-WARNING) fi