View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005969 | ardour | bugs | public | 2014-09-19 08:03 | 2020-04-19 20:16 |
| Reporter | Houston4444 | Assigned To | x42 | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0 | ||||
| Summary | 0005969: ardour3 doesn't support any space character launching sessions | ||||
| Description | Ardour3 can't launch sessions with space character! I have sawn it few month ago, but now I understand why! It comes from the launching script ardour3 in PATH. I changed it this way (in bash, I don't know all differences between sh and bash) , and it works really better, whit all options. #!/bin/bash # This is Linux-specific startup script for a bundled version of Ardour CA=0 while [ $# -gt 0 ] ; do case "$1" in --debug | -D ) DEBUG="T"; shift ;; * ) if [[ "$1" =~ " " ]];then IEND="$1" else CA=$(($CA+1)) [ -z "$2" ] && AEND="$1" || A[$CA]="$1" fi shift; ;; esac done # 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=/opt/ardour3/bin INSTALL_DIR=$(dirname $BIN_DIR) LIB_DIR=$INSTALL_DIR/lib ETC_DIR=$INSTALL_DIR/etc USER_ARDOUR_DIR=$HOME/.config/ardour3 if [ ! -d $USER_ARDOUR_DIR ] ; then mkdir -p $USER_ARDOUR_DIR || exit 1 fi # this triggers code in main() that will reset runtime environment variables # to point to directories inside the ardour package export ARDOUR_BUNDLED=true # edited export PATH=/opt/ardour3/bin:$PATH export LXVST_PATH="$VST_PATH" cp /opt/ardour3/etc/gdk-pixbuf.loaders ~/.config/ardour3/ cp /opt/ardour3/etc/pango.modules ~/.config/ardour3/ # 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 exec gdb $INSTALL_DIR/bin/ardour-3.5.380 else exec $INSTALL_DIR/bin/ardour-3.5.380 ${A[1]} ${A[2]} ${A[3]} ${A[4]} "$AEND" fi | ||||
| Tags | No tags attached. | ||||
|
2014-09-19 08:03
|
ardour3 (1,602 bytes)
#!/bin/bash
# This is Linux-specific startup script for a bundled version of Ardour
CA=0
while [ $# -gt 0 ] ;
do
case "$1" in
--debug | -D )
DEBUG="T";
shift ;;
* )
if [[ "$1" =~ " " ]];then
IEND="$1"
else
CA=$(($CA+1))
[ -z "$2" ] && AEND="$1" || A[$CA]="$1"
fi
shift; ;;
esac
done
# 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=/opt/ardour3/bin
INSTALL_DIR=$(dirname $BIN_DIR)
LIB_DIR=$INSTALL_DIR/lib
ETC_DIR=$INSTALL_DIR/etc
USER_ARDOUR_DIR=$HOME/.config/ardour3
if [ ! -d $USER_ARDOUR_DIR ] ; then
mkdir -p $USER_ARDOUR_DIR || exit 1
fi
# this triggers code in main() that will reset runtime environment variables
# to point to directories inside the ardour package
export ARDOUR_BUNDLED=true
# edited
export PATH=/opt/ardour3/bin:$PATH
export LXVST_PATH="$VST_PATH"
cp /opt/ardour3/etc/gdk-pixbuf.loaders ~/.config/ardour3/
cp /opt/ardour3/etc/pango.modules ~/.config/ardour3/
# 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
exec gdb $INSTALL_DIR/bin/ardour-3.5.380
else
exec $INSTALL_DIR/bin/ardour-3.5.380 ${A[1]} ${A[2]} ${A[3]} ${A[4]} "$AEND"
fi
|
|
|
I made a mistake reporting the script. Last variable is "$IEND" , not "$AEND". sorry! |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-09-19 08:03 | Houston4444 | New Issue | |
| 2014-09-19 08:03 | Houston4444 | File Added: ardour3 | |
| 2014-09-19 09:56 | Houston4444 | Note Added: 0015888 | |
| 2015-09-25 11:01 | colinf | Relationship added | duplicate of 0006395 |
| 2015-10-18 09:56 | x42 | Status | new => resolved |
| 2015-10-18 09:56 | x42 | Resolution | open => fixed |
| 2015-10-18 09:56 | x42 | Assigned To | => x42 |
| 2020-04-19 20:16 | system | Note Added: 0023321 | |
| 2020-04-19 20:16 | system | Status | resolved => closed |