2015-03-28 14:37:38 -04:00
|
|
|
#!/bin/sh
|
2016-03-06 10:32:30 -05:00
|
|
|
APP_ROOT="/opt/filebot"
|
2015-03-28 14:37:38 -04:00
|
|
|
|
2015-10-11 10:04:13 -04:00
|
|
|
if [ -z "$HOME" ]; then
|
2016-03-06 10:32:30 -05:00
|
|
|
echo '$HOME must be set'
|
2015-10-11 10:04:13 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-03-06 10:32:30 -05:00
|
|
|
# add APP_ROOT to LD_LIBRARY_PATH
|
|
|
|
if [ ! -z "$LD_LIBRARY_PATH" ]; then
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APP_ROOT"
|
|
|
|
else
|
|
|
|
export LD_LIBRARY_PATH="$APP_ROOT"
|
|
|
|
fi
|
|
|
|
|
2015-03-28 14:37:38 -04:00
|
|
|
APP_DATA="$HOME/.config/FileBot"
|
|
|
|
APP_CACHE="$HOME/.cache/FileBot"
|
|
|
|
|
|
|
|
# use embedded JRE
|
2014-07-29 07:21:15 -04:00
|
|
|
JAVA_CMD="$APP_ROOT/jre/bin/java"
|
|
|
|
|
2016-03-06 10:32:30 -05:00
|
|
|
# start filebot
|
2016-03-08 11:21:13 -05:00
|
|
|
"$JAVA_CMD" -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true -Djava.net.useSystemProxies=true -Djna.nosys=true -Dapplication.update=skip -Dapplication.deployment=usc -Dnet.filebot.UserFiles.fileChooser=JavaFX "-Dapplication.dir=$APP_DATA" "-Dapplication.cache=$APP_CACHE/ehcache.disk.store" "-Djava.io.tmpdir=$APP_CACHE/java.io.tmpdir" "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"
|