2016-05-18 07:21:25 +00:00
|
|
|
#!/bin/sh
|
2016-05-21 22:02:58 +00:00
|
|
|
export LANG="C.UTF-8"
|
2016-05-18 19:29:33 +00:00
|
|
|
|
2016-05-19 20:24:52 +00:00
|
|
|
export PATH="$SNAP/bin:$SNAP/usr/bin"
|
|
|
|
export LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu"
|
2016-05-18 07:21:25 +00:00
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu/mesa:$LD_LIBRARY_PATH"
|
|
|
|
|
2016-05-21 19:39:07 +00:00
|
|
|
export JAVA_HOME="$SNAP/oracle-java"
|
2016-05-19 20:24:52 +00:00
|
|
|
export PATH="$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH"
|
2016-05-18 07:21:25 +00:00
|
|
|
|
2016-05-21 19:39:07 +00:00
|
|
|
export LD_LIBRARY_PATH="$SNAP/oracle-java/lib/amd64/jli:$SNAP/oracle-java/lib/amd64:$SNAP/oracle-java/jre/lib/amd64:$LD_LIBRARY_PATH"
|
2016-05-19 20:24:52 +00:00
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu/mesa:$SNAP/usr/lib/x86_64-linux-gnu/dri:$LD_LIBRARY_PATH"
|
|
|
|
|
2016-05-21 19:39:07 +00:00
|
|
|
export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0/modules:$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0:$LD_LIBRARY_PATH"
|
2016-05-19 20:24:52 +00:00
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$LD_LIBRARY_PATH"
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH"
|
|
|
|
|
|
|
|
export GDK_PIXBUF_MODULEDIR="$SNAP/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0"
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="$SNAP/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
2016-05-18 07:21:25 +00:00
|
|
|
|
2016-05-21 22:02:58 +00:00
|
|
|
export GTK_PATH="$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0"
|
2016-05-19 20:24:52 +00:00
|
|
|
|
|
|
|
export GTK_MODULES=""
|
|
|
|
export GTK2_MODULES=""
|
|
|
|
|
2016-05-21 19:39:07 +00:00
|
|
|
# export GIO_MODULE_DIR="$SNAP/usr/lib/x86_64-linux-gnu/gio/modules"
|
|
|
|
# export LD_LIBRARY_PATH="$GIO_MODULE_DIR:$LD_LIBRARY_PATH"
|
|
|
|
|
|
|
|
export GTK2_RC_FILES="$SNAP/usr/share/themes/Ambiance/gtk-2.0/gtkrc"
|
|
|
|
export GTK_THEME="$SNAP/usr/share/themes/Ambiance/gtk-3.0/gtk.css"
|
|
|
|
|
2016-05-21 22:02:58 +00:00
|
|
|
export ORIGIN="$SNAP/usr/lib/x86_64-linux-gnu"
|
2016-05-21 19:39:07 +00:00
|
|
|
export XDG_DATA_HOME="$SNAP/usr/share"
|
|
|
|
export GSETTINGS_SCHEMA_DIR="$SNAP/usr/share/glib-2.0/schemas"
|
|
|
|
|
2016-05-21 22:02:58 +00:00
|
|
|
export LIBGL_DRIVERS_PATH="$SNAP/usr/lib/x86_64-linux-gnu/dri"
|
|
|
|
|
2016-05-21 19:39:07 +00:00
|
|
|
export FONTCONFIG_PATH="$SNAP/etc/fonts/config.d"
|
|
|
|
export FONTCONFIG_FILE="$SNAP/etc/fonts/fonts.conf"
|
|
|
|
|
2016-05-21 22:02:58 +00:00
|
|
|
# export JAVA_TOOL_OPTIONS="-javaagent:$SNAP/usr/share/java/jayatanaag.jar"
|
2016-05-21 19:39:07 +00:00
|
|
|
# export JAVA_OPTS="-Dsun.java2d.opengl=True $JAVA_OPTS"
|
|
|
|
# export JAVA_OPTS="-Dsun.java2d.xrender=True $JAVA_OPTS"
|
2016-05-18 07:21:25 +00:00
|
|
|
|
2016-05-21 22:02:58 +00:00
|
|
|
export APP_ROOT="$SNAP/filebot"
|
|
|
|
export APP_DATA="$SNAP_USER_DATA/data"
|
|
|
|
export APP_CACHE="$SNAP_USER_DATA/cache"
|
|
|
|
export APP_PREFS="$SNAP_USER_DATA/prefs"
|
|
|
|
|
|
|
|
java -Djava.library.path="$LD_LIBRARY_PATH" -Djna.library.path="$LD_LIBRARY_PATH" -Dunixfs=false -DuseGVFS=false -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" "$@"
|