3 # This is Linux-specific startup script for a bundled version of Ardour
7 while [ $# -gt 0 ] ; do
19 # LD_LIBRARY_PATH needs to be set here so that epa can swap between the original and the bundled version
20 # (the original one will be stored in PREBUNDLE_ENV)
21 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
22 export PREBUNDLE_ENV="$(env)"
24 BIN_DIR=$(dirname $(readlink -f $0))
25 INSTALL_DIR=$(dirname $BIN_DIR)
26 LIB_DIR=$INSTALL_DIR/lib
27 ETC_DIR=$INSTALL_DIR/etc
29 # this triggers code in main() that will reset runtime environment variables
30 # to point to directories inside the ardour package
32 export ARDOUR_BUNDLED=true
34 # NSM needs a path to this script
35 export ARDOUR_SELF="$0"
38 # this is edited by the build script to include relevant environment variables
42 # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so)
44 # Set this so that the executable will find all the right libraries inside the bundle
45 export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
47 if [ "T" = "$DEBUG" ]; then
48 export ARDOUR_INSIDE_GDB=1
49 exec gdb $INSTALL_DIR/bin/%EXENAME%-%VER%
51 exec $INSTALL_DIR/bin/%EXENAME%-%VER% $ARGS