From 59b67d7910ed7d1b06b39c63fb1678358d94c56f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 16 Jul 2012 01:16:33 +0000 Subject: [PATCH] * set things up so that temporary files are saved in ~/.filebot/temp --- installer/deb/filebot.sh | 2 +- installer/ipkg/filebot.sh | 2 +- installer/portable/FileBot.l4j.ini | 3 +++ installer/portable/filebot.sh | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/installer/deb/filebot.sh b/installer/deb/filebot.sh index 947c0be5..37adb1a0 100644 --- a/installer/deb/filebot.sh +++ b/installer/deb/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -jar /usr/share/filebot/FileBot.jar "$@" +java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/ipkg/filebot.sh b/installer/ipkg/filebot.sh index 63cbb2fd..31cf0b3c 100644 --- a/installer/ipkg/filebot.sh +++ b/installer/ipkg/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Dunixfs=false -Dapplication.deployment=ipkg -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -jar /usr/share/filebot/FileBot.jar "$@" +java -Dunixfs=false -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/portable/FileBot.l4j.ini b/installer/portable/FileBot.l4j.ini index 5eb64cbb..8b6fe28d 100644 --- a/installer/portable/FileBot.l4j.ini +++ b/installer/portable/FileBot.l4j.ini @@ -14,6 +14,9 @@ -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 +# put all temporary files here +-Djava.io.tmpdir="%EXEDIR%/temp" + # look for native libs here -Djna.library.path="%EXEDIR%" -Djava.library.path="%EXEDIR%" diff --git a/installer/portable/filebot.sh b/installer/portable/filebot.sh index 3cf647b6..a64c0a41 100644 --- a/installer/portable/filebot.sh +++ b/installer/portable/filebot.sh @@ -3,4 +3,4 @@ SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file +java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file