summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-07-25 16:22:02 +0100
committerCarl Hetherington <cth@carlh.net>2019-07-25 16:22:02 +0100
commit4b1c869f2139bcc0ad2163646d04e0d787cf8a32 (patch)
tree4ded6ada358365bc90753a3a39202d08dae7fd1c /run
parent57f112a2bd073123a686141be6c16ba997349056 (diff)
Hack to allow OS X to find timeline icons when running from the source tree.
Diffstat (limited to 'run')
-rwxr-xr-xrun/dcpomatic2
1 files changed, 2 insertions, 0 deletions
diff --git a/run/dcpomatic b/run/dcpomatic
index 5f40a2d80..ee509fcbd 100755
--- a/run/dcpomatic
+++ b/run/dcpomatic
@@ -1,7 +1,9 @@
#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:/Users/c.hetherington/osx-environment/64/lib
+export DCPOMATIC_GRAPHICS=$DIR/../graphics
if [ "$1" == "--debug" ]; then
shift
gdb --args build/src/tools/dcpomatic2 $*