filebot/installer/snappy/filebot.sh

20 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
2016-05-22 06:24:06 +00:00
export LANG=C.UTF-8
export ARCH=x86_64-linux-gnu
2016-05-18 07:21:25 +00:00
2016-05-22 06:24:06 +00:00
export JAVA_HOME=$SNAP/oracle-java
export PATH=$JAVA_HOME/jre/bin:$PATH
2016-05-19 20:24:52 +00:00
2016-05-22 06:24:06 +00:00
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$SNAP_ARCH/jli:$JAVA_HOME/jre/lib/$SNAP_ARCH:$LD_LIBRARY_PATH
2016-06-14 15:03:47 +00:00
export LD_LIBRARY_PATH=$SNAP/filebot/lib/$SNAP_ARCH:$LD_LIBRARY_PATH
2016-05-19 20:24:52 +00:00
2016-05-22 06:24:06 +00:00
# export JAVA_TOOL_OPTIONS=-javaagent:$SNAP/usr/share/java/jayatanaag.jar
# export JAVA_OPTS=-Dsun.java2d.xrender=True
2016-07-11 16:20:15 +00:00
export APP_ROOT="$SNAP/filebot"
2016-07-11 16:45:27 +00:00
export APP_DATA="$SNAP_USER_DATA/data"
2016-07-11 16:20:15 +00:00
export APP_CACHE="$SNAP_USER_DATA/cache"
2016-07-11 16:45:27 +00:00
export APP_PREFS="$SNAP_USER_DATA/prefs"
2016-07-11 16:45:27 +00:00
java -Duser.home="$SNAP_USER_DATA" -Djava.library.path="$LD_LIBRARY_PATH" -Djna.library.path="$LD_LIBRARY_PATH" -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Djava.net.useSystemProxies=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" -Djava.util.prefs.userRoot="$APP_PREFS/user" -Djava.util.prefs.systemRoot="$APP_PREFS/system" -Dnet.filebot.AcoustID.fpcalc="$SNAP/usr/bin/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"