External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3KB

  1. #!/bin/sh
  2. # This is Linux-specific startup script for a bundled version of Ardour
  3. ARGS=""
  4. while [ $# -gt 0 ] ; do
  5. case $1 in
  6. --debug)
  7. DEBUG="T";
  8. shift ;;
  9. *)
  10. ARGS=$ARGS$1" ";
  11. shift; ;;
  12. esac
  13. done
  14. # LD_LIBRARY_PATH needs to be set here so that epa can swap between the original and the bundled version
  15. # (the original one will be stored in PREBUNDLE_ENV)
  16. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
  17. export PREBUNDLE_ENV="$(env)"
  18. BIN_DIR=/opt/ardour4/bin
  19. INSTALL_DIR=$(dirname $BIN_DIR)
  20. LIB_DIR=$INSTALL_DIR/lib
  21. ETC_DIR=$INSTALL_DIR/etc
  22. # this triggers code in main() that will reset runtime environment variables
  23. # to point to directories inside the ardour package
  24. export ARDOUR_BUNDLED=true
  25. # NSM needs a path to this script
  26. export ARDOUR_SELF="$0"
  27. # edited
  28. export LXVST_PATH="$VST_PATH"
  29. export PATH=/opt/ardour4/bin:$PATH
  30. # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so)
  31. export GTK_MODULES=""
  32. # Set this so that the executable will find all the right libraries inside the bundle
  33. export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
  34. if [ "T" = "$DEBUG" ]; then
  35. export ARDOUR_INSIDE_GDB=1
  36. exec gdb $INSTALL_DIR/bin/ardour-4.2.358
  37. else
  38. exec $INSTALL_DIR/bin/ardour-4.2.358 $ARGS
  39. fi