#!/usr/bin/env bash # The AppImage runtime sets some special environment variables. We provide # default values here in case the user tries to run this script outside an # AppImage where the variables would otherwise be undefined. if [[ ! "${APPIMAGE}" || ! "${APPDIR}" ]]; then export APPIMAGE="$(readlink -f "${0}")" export APPDIR="$(dirname "${APPIMAGE}")" fi export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" export AUDACITY_PATH="${AUDACITY_PATH}:${APPDIR}/share/audacity" export AUDACITY_MODULES_PATH="${AUDACITY_MODULES_PATH}:${APPDIR}/lib/modules" function help() { # Normal audacity help "${APPDIR}/bin/audacity" --help # Special options handled by this script cat >&2 <