2015-03-28 18:37:38 +00:00
|
|
|
#!/bin/sh
|
2016-03-06 15:32:30 +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
|
|
|
|
|
|
|
|
# create application data folder
|
|
|
|
APP_DATA="$HOME/.filebot"
|
|
|
|
|
|
|
|
mkdir -p "$APP_DATA"
|
|
|
|
if [ ! -w "$APP_DATA" ]; then
|
|
|
|
echo "$APP_DATA must be set and writable"
|
|
|
|
exit 1
|
2015-03-28 18:37:38 +00:00
|
|
|
fi
|
|
|
|
|
2015-10-16 14:29:28 +00:00
|
|
|
java $JAVA_OPTS -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=deb "-Dapplication.dir=$APP_DATA" "-Djava.io.tmpdir=$APP_DATA/temp" "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/fpcalc" -jar "$APP_ROOT/FileBot.jar" "$@"
|