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

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