mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
19 lines
953 B
Bash
19 lines
953 B
Bash
#!/bin/sh
|
|
|
|
APP_ROOT="/opt/filebot"
|
|
APP_DATA="$HOME/.config/FileBot"
|
|
APP_CACHE="$HOME/.cache/FileBot"
|
|
|
|
# use embedded JRE
|
|
JAVA_CMD="$APP_ROOT/jre/bin/java"
|
|
|
|
# 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
|
|
|
|
"$JAVA_CMD" -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -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" -jar "$APP_ROOT/FileBot.jar" "$@"
|