2012-10-12 15:45:00 +00:00
|
|
|
#!/bin/sh
|
2014-03-26 15:25:56 +00:00
|
|
|
|
2015-03-28 18:14:58 +00:00
|
|
|
APP_ROOT="/opt/share/filebot"
|
|
|
|
APP_DATA="$APP_ROOT/data/$USER"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-03-26 15:25:56 +00:00
|
|
|
# force JVM language and encoding settings
|
2014-10-26 17:48:52 +00:00
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2014-03-26 15:25:56 +00:00
|
|
|
|
2015-03-28 18:14:58 +00:00
|
|
|
java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dnet.filebot.Archive.extractor=SevenZipExecutable "-Dnet.filebot.Archive.7z=7z" "-Dnet.filebot.AcoustID.fpcalc=fpcalc" "-Duser.home=$APP_DATA" "-Dapplication.dir=$APP_DATA" "-Djava.io.tmpdir=$APP_DATA/temp" -jar "$APP_ROOT/FileBot.jar" "$@"
|