summarylogtreecommitdiffstats
path: root/filebot-arch.sh
diff options
context:
space:
mode:
authormax.bra2017-01-12 14:04:17 +0100
committermax.bra2017-01-12 14:04:17 +0100
commit1300fcb91905dc43877d18371d0b74004fb0fb7f (patch)
treef6e30bf043d6c9aea4044b7eaab1d696b71731af /filebot-arch.sh
parent33ef22ea634b90b03cf40e36a87ec64c83ea184b (diff)
downloadaur-1300fcb91905dc43877d18371d0b74004fb0fb7f.tar.gz
jna access restored. no more any arch. x86, x86_64 and armv7h only.
Diffstat (limited to 'filebot-arch.sh')
-rw-r--r--filebot-arch.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/filebot-arch.sh b/filebot-arch.sh
index 0a6a9f47c09a..a30aac768821 100644
--- a/filebot-arch.sh
+++ b/filebot-arch.sh
@@ -4,6 +4,13 @@
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
+APP_ROOT=/usr/share/java/filebot
+# 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
@@ -11,4 +18,11 @@ EXTRACTOR="ApacheVFS" # use Apache Commons VFS2 with junrar plugin
# EXTRACTOR="SevenZipNativeBindings" # use the lib7-Zip-JBinding.so native library
# start filebot
-java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Djava.net.useSystemProxies=false -Djna.nosys=true -Dapplication.deployment=portable -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 $JAVA_OPTS -jar /usr/share/java/filebot/filebot.jar "$@"
+java -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false \
+-Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Djava.net.useSystemProxies=false \
+-Djna.nosys=false -Dapplication.deployment=portable \
+-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 \
+$JAVA_OPTS -jar /usr/share/java/filebot/filebot.jar "$@"
+