1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-25 17:28:51 -05:00
filebot/installer/snappy/filebot.sh

20 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
2016-05-22 02:24:06 -04:00
export LANG=C.UTF-8
export ARCH=x86_64-linux-gnu
2016-05-18 03:21:25 -04:00
2016-05-22 02:24:06 -04:00
export JAVA_HOME=$SNAP/oracle-java
export PATH=$JAVA_HOME/jre/bin:$PATH
2016-05-19 16:24:52 -04:00
2016-05-22 02:24:06 -04:00
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$SNAP_ARCH/jli:$JAVA_HOME/jre/lib/$SNAP_ARCH:$LD_LIBRARY_PATH
2016-06-14 11:03:47 -04:00
export LD_LIBRARY_PATH=$SNAP/filebot/lib/$SNAP_ARCH:$LD_LIBRARY_PATH
2016-05-19 16:24:52 -04:00
2016-05-22 02:24:06 -04:00
# export JAVA_TOOL_OPTIONS=-javaagent:$SNAP/usr/share/java/jayatanaag.jar
# export JAVA_OPTS=-Dsun.java2d.xrender=True
2016-07-11 12:20:15 -04:00
export APP_ROOT="$SNAP/filebot"
2016-07-11 12:45:27 -04:00
export APP_DATA="$SNAP_USER_DATA/data"
2016-07-11 12:20:15 -04:00
export APP_CACHE="$SNAP_USER_DATA/cache"
2016-07-11 12:45:27 -04:00
export APP_PREFS="$SNAP_USER_DATA/prefs"
2016-07-11 12:45:27 -04: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" "$@"