diff --git a/tools/linux_packaging/ardour.sh.in b/tools/linux_packaging/ardour.sh.in index 3fd6c6e2dc..aa2e1b6ed5 100644 --- a/tools/linux_packaging/ardour.sh.in +++ b/tools/linux_packaging/ardour.sh.in @@ -41,8 +41,6 @@ export ARDOUR_SELF=`basename "$0"` # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so) export GTK_MODULES="" -# Set this so that the executable will find all the right libraries inside the bundle -export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} if [ "T" = "$DEBUG" ]; then export ARDOUR_INSIDE_GDB=1 @@ -50,6 +48,7 @@ if [ "T" = "$DEBUG" ]; then env LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \ $INSTALL_DIR/bin/%EXENAME%-%VER% else +# Set this so that the executable will find all the right libraries inside the bundle export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@" fi