Blame docker-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh

abfde6
#!/bin/bash
abfde6
abfde6
OLDDIR=`pwd`
abfde6
cd `dirname "$0"`
abfde6
SCRIPT_DIR=`pwd`
abfde6
BASE_DIR=`dirname "$SCRIPT_DIR"`
abfde6
abfde6
export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib64:$LD_LIBRARY_PATH"
abfde6
export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb
abfde6
abfde6
if [ "$1" = "--appimage-exec" ]; then
abfde6
	if ! "${@:2}"; then
abfde6
		cd "$OLDDIR"
abfde6
		exit 1
abfde6
	fi
abfde6
else
abfde6
	if ! "./launch-opentoonz.sh.wrapper" "$@"; then
abfde6
		cd "$OLDDIR"
abfde6
		exit 1
abfde6
	fi
abfde6
fi
abfde6
cd "$OLDDIR"