View Issue Details

IDProjectCategoryView StatusLast Update
0005969ardourbugspublic2020-04-19 20:16
ReporterHouston4444 Assigned Tox42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0 
Summary0005969: ardour3 doesn't support any space character launching sessions
DescriptionArdour3 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
 
TagsNo tags attached.

Relationships

duplicate of 0006395 closedx42 Linux: ardour can't launch session containing spaces 

Activities

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
 
ardour3 (1,602 bytes)   

Houston4444

2014-09-19 09:56

reporter   ~0015888

I made a mistake reporting the script. Last variable is "$IEND" , not "$AEND".
sorry!

system

2020-04-19 20:16

developer   ~0023321

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.

Issue History

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