2015-03-28 14:37:38 -04:00
|
|
|
#!/bin/sh
|
2016-03-06 10:32:30 -05:00
|
|
|
APP_ROOT="/usr/share/filebot"
|
2015-03-28 14:37:38 -04:00
|
|
|
|
2016-03-06 10:32:30 -05:00
|
|
|
if [ -z "$HOME" ]; then
|
|
|
|
echo '$HOME must be set'
|
2015-10-11 10:04:13 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-03-28 14:37:38 -04:00
|
|
|
# add APP_ROOT to LD_LIBRARY_PATH
|
2016-03-06 10:32:30 -05:00
|
|
|
if [ ! -z "$LD_LIBRARY_PATH" ]; then
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APP_ROOT"
|
2015-03-28 14:37:38 -04:00
|
|
|
else
|
2016-03-06 10:32:30 -05:00
|
|
|
export LD_LIBRARY_PATH="$APP_ROOT"
|
|
|
|
fi
|
|
|
|
|
2016-03-08 11:21:13 -05:00
|
|
|
# select application data folder
|
2016-03-06 10:32:30 -05:00
|
|
|
APP_DATA="$HOME/.filebot"
|
|
|
|
|
2016-03-08 11:21:13 -05:00
|
|
|
java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Djna.nosys=true -Dapplication.deployment=deb "-Dapplication.dir=$APP_DATA" "-Djava.io.tmpdir=$APP_DATA/temp" "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"
|