summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/ardour.sh.in
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-01-31 14:48:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-01-31 14:48:34 +0000
commit339ef19a6f365da265e5d591e8e5a96f6d562012 (patch)
tree0a104f7aedd8c8fccbe5734052edd295732e50fd /tools/linux_packaging/ardour.sh.in
parent85b4ff8669c80e3af1f89b826e37a964c62ae51a (diff)
add linux packaging script(s) from 2.0-ongoing
git-svn-id: svn://localhost/ardour2/branches/3.0@8625 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools/linux_packaging/ardour.sh.in')
-rw-r--r--tools/linux_packaging/ardour.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/linux_packaging/ardour.sh.in b/tools/linux_packaging/ardour.sh.in
index c36e91bc24..d288cf6159 100644
--- a/tools/linux_packaging/ardour.sh.in
+++ b/tools/linux_packaging/ardour.sh.in
@@ -1,5 +1,10 @@
#!/bin/sh
+#LD_LIBRARY_PATH needs to be set (empty) so that epa can swap between the original and the bundled version
+export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+
+export PREBUNDLE_ENV="$(env)"
+
BIN_DIR=$(dirname $(readlink -f $0))
INSTALL_DIR=$(dirname $BIN_DIR)
LIB_DIR=$INSTALL_DIR/lib
@@ -20,6 +25,7 @@ export ARDOUR_BUNDLED=true
%ENV%
export GTK_PATH=$INSTALL_DIR${GTK_PATH:+:$GTK_PATH}
+export GTK_MODULES="" # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so)
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
@@ -28,7 +34,7 @@ export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
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
-exec $INSTALL_DIR/bin/ardour-2.8.11 "$@"
+exec $INSTALL_DIR/bin/ardour-%VER% "$@"