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.

52 lines
1.3KB

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