diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-17 02:01:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-17 02:01:02 +0200 |
commit | cbea1a4a82d5bf728875d7bc88053078c0596211 (patch) | |
tree | bf0c5c8abf45bb37fb30d6f29d4688906b878df5 /tools/linux_packaging/ardour.sh.in | |
parent | 619900e333526f03712bb40b6209010987844aa5 (diff) |
linux wrapper script: load session with spaces - #6395
Diffstat (limited to 'tools/linux_packaging/ardour.sh.in')
-rw-r--r-- | tools/linux_packaging/ardour.sh.in | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/tools/linux_packaging/ardour.sh.in b/tools/linux_packaging/ardour.sh.in index 4402fd40ad..420bdf581d 100644 --- a/tools/linux_packaging/ardour.sh.in +++ b/tools/linux_packaging/ardour.sh.in @@ -2,19 +2,18 @@ # This is Linux-specific startup script for a bundled version of Ardour -ARGS="" +checkdebug(){ + for arg in "$@" + do + case "$arg" in + --debug ) + DEBUG="T" + esac + done +} -while [ $# -gt 0 ] ; do - case $1 in +checkdebug "$@" - --debug) - DEBUG="T"; - shift ;; - *) - ARGS=$ARGS$1" "; - 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) @@ -48,8 +47,5 @@ if [ "T" = "$DEBUG" ]; then export ARDOUR_INSIDE_GDB=1 exec gdb $INSTALL_DIR/bin/%EXENAME%-%VER% else - exec $INSTALL_DIR/bin/%EXENAME%-%VER% $ARGS + exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@" fi - - - |