From 2eeca8be7766642beb3e763ef103c3cad354e358 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 18 Nov 2012 15:20:19 +0000 Subject: [PATCH] * make sure to create prefs in the application folder rather than the working dir --- installer/portable/FileBot.l4j.ini | 2 +- installer/portable/filebot.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/portable/FileBot.l4j.ini b/installer/portable/FileBot.l4j.ini index b7a12a3b..d7473f97 100644 --- a/installer/portable/FileBot.l4j.ini +++ b/installer/portable/FileBot.l4j.ini @@ -29,4 +29,4 @@ # store preferences to text file -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory --Dnet.sourceforge.tuned.prefs.file=prefs.properties +-Dnet.sourceforge.tuned.prefs.file="%EXEDIR%/prefs.properties" diff --git a/installer/portable/filebot.sh b/installer/portable/filebot.sh index b1dc7583..746226e0 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 -Xmx256m -Dunixfs=false -DuseExtendedFileAttributes=true -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -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 +java -Xmx256m -Dunixfs=false -DuseExtendedFileAttributes=true -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -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=$dir_bin/prefs.properties" -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file