diff options
Diffstat (limited to 'tools/linux_packaging/ardour.sh.in')
-rw-r--r-- | tools/linux_packaging/ardour.sh.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/linux_packaging/ardour.sh.in b/tools/linux_packaging/ardour.sh.in index 6946341993..83f69bb2b6 100644 --- a/tools/linux_packaging/ardour.sh.in +++ b/tools/linux_packaging/ardour.sh.in @@ -1,5 +1,7 @@ #!/bin/sh +# This is Linux-specific startup script for a bundled version of Ardour + while [ $# -gt 0 ] ; do echo "arg = $1" case $1 in @@ -11,9 +13,9 @@ while [ $# -gt 0 ] ; do esac done -#LD_LIBRARY_PATH needs to be set (empty) so that epa can swap between the original and the bundled version +# LD_LIBRARY_PATH needs to be set here so that epa can swap between the original and the bundled version +# (the original one will be stored in PREBUNDLE_ENV) export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} - export PREBUNDLE_ENV="$(env)" BIN_DIR=$(dirname $(readlink -f $0)) @@ -35,12 +37,13 @@ export ARDOUR_BUNDLED=true %ENV% -export GTK_PATH=$INSTALL_DIR/libs/clearlooks${GTK_PATH:+:$GTK_PATH} -export GTK_MODULES="" # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so) +# 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} # create install-location-dependent config files for Pango and GDK image loaders -# We have to do this every time because its possible that BIN_DIR has changed +# We have to do this every time because its possible that LIB_DIR has changed sed "s?@ROOTDIR@/modules?$LIB_DIR/modules?" < $ETC_DIR/pango.modules.in > $USER_ARDOUR_DIR/pango.modules sed "s?@ROOTDIR@/loaders?$LIB_DIR/loaders?" < $ETC_DIR/gdk-pixbuf.loaders.in > $USER_ARDOUR_DIR/gdk-pixbuf.loaders |