filebot/installer/deb/filebot.sh

13 lines
515 B
Bash
Raw Normal View History

#!/bin/sh
APP_ROOT=/usr/share/filebot
if [ -z "$HOME" ]; then
echo '$HOME must be set'
exit 1
fi
# select application data folder
APP_DATA="$HOME/.filebot"
java @{java.application.options} -Dapplication.deployment=deb -DuseGVFS=true -Dnet.filebot.gio.GVFS="$XDG_RUNTIME_DIR/gvfs" -Dapplication.dir="$APP_DATA" -Djava.io.tmpdir="$APP_DATA/tmp" -Djna.library.path="$APP_ROOT" -Djava.library.path="$APP_ROOT" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/*" @{main.class} "$@"