summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-24 18:46:43 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-27 13:10:44 +0200
commitd7b8bf995951293db274bc6f5ece49136c0742f3 (patch)
tree982c1234a25b4ed44cfcb1ae7537a7ec05e3c204 /run
parentc6b9b7a6ce33e53db65beb6b169f3d9a8f8cfa45 (diff)
Allow running player from cdist-built trees.
Diffstat (limited to 'run')
-rwxr-xr-xrun/dcpomatic_player3
1 files changed, 3 insertions, 0 deletions
diff --git a/run/dcpomatic_player b/run/dcpomatic_player
index 0c565c251..96806bba1 100755
--- a/run/dcpomatic_player
+++ b/run/dcpomatic_player
@@ -4,6 +4,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
binary=build/src/tools/dcpomatic2_player
+# Allow running from a tree built using cdist
+export LD_LIBRARY_PATH=$DIR/../../../lib:$DIR/../../../lib64:$LD_LIBRARY_PATH
+
if [ "$1" == "--debug" ]; then
shift
gdb --args build/src/tools/dcpomatic2_player $*