2017-02-05 00:36:30 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# force JVM language and encoding settings
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
|
|
APP_ROOT=/usr/share/java/filebot
|
2018-09-01 00:37:26 -04:00
|
|
|
cd $APP_ROOT
|
|
|
|
|
2017-02-05 00:36: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
|
|
|
|
|
|
|
|
# choose extractor
|
|
|
|
EXTRACTOR="ApacheVFS" # use Apache Commons VFS2 with junrar plugin
|
|
|
|
# EXTRACTOR="SevenZipExecutable" # use the 7z executable
|
|
|
|
# EXTRACTOR="SevenZipNativeBindings" # use the lib7-Zip-JBinding.so native library
|
|
|
|
|
|
|
|
# start filebot
|
2018-09-01 00:37:26 -04:00
|
|
|
java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dapplication.deployment=AUR -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Djna.nosys=false -Djna.nounpack=true -Dnet.filebot.Archive.extractor="$EXTRACTOR" -Dnet.filebot.AcoustID.fpcalc="fpcalc" -Dapplication.dir=$HOME/.config/filebot -Djava.io.tmpdir=/tmp/filebot -Dapplication.update=skip -Djna.library.path=/usr/share/java/filebot $JAVA_OPTS -cp /usr/share/java/filebot/filebot.jar net.filebot.Main "$@"
|
2017-02-05 00:36:30 -05:00
|
|
|
|