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