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