Fix portable startup config

This commit is contained in:
Reinhard Pointner 2016-11-27 22:02:22 +08:00
parent a1d024b097
commit 8684238b31
2 changed files with 19 additions and 18 deletions

View File

@ -1,31 +1,32 @@
# FileBot launch4j runtime config
-Dapplication.dir="%EXEDIR%\data"
-Dapplication.deployment=portable
-Dapplication.dir="%EXEDIR%"
-Duser.home="%EXEDIR%"
-Duser.home="%EXEDIR%\data"
-Djava.io.tmpdir="%EXEDIR%\data\tmp"
# network settings
-Djava.net.useSystemProxies=false
# do not use native shell for move/copy operations
# use Windows Shell for move/copy operations
-DuseNativeShell=false
# do not use NTFS extended attributes for storing metadata
# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=true
-DuseCreationDate=false
# put all temporary files here
-Djava.io.tmpdir="%EXEDIR%\temp"
# look for native libs here
-Djna.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"
# do not use any JNA libs that are already installed
-Djna.nosys=true
# look for fpcalc here
# look for executables in the application folder
-Dnet.filebot.AcoustID.fpcalc="%EXEDIR%\fpcalc.exe"
# store preferences to text file
# look for native libraries in the application folder
-Djna.library.path="%EXEDIR%"
-Djna.boot.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"
# make sure to use the bundled JNA library
-Djna.nosys=true
-Djna.nounpack=true
# store preferences in properties file
-Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory
-Dnet.filebot.util.prefs.file="%EXEDIR%\prefs.properties"
-Dnet.filebot.util.prefs.file="%EXEDIR%\data\prefs.properties"

View File

@ -1,2 +1,2 @@
@ECHO OFF
java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Djna.nosys=true -Dapplication.deployment=portable "-Dapplication.dir=%~dp0." "-Duser.home=%~dp0." "-Djava.io.tmpdir=%~dp0temp" "-Djna.library.path=%~dp0" "-Djava.library.path=%~dp0" "-Dnet.filebot.AcoustID.fpcalc=%~dp0fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=%~dp0prefs.properties" -jar "%~dp0FileBot.jar" %*
java -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dapplication.deployment=portable -Djna.nosys=true -Djna.nounpack=true -Dapplication.dir="%~dp0data" -Duser.home="%~dp0data" -Djava.io.tmpdir="%~dp0data\tmp" -Djna.library.path="%~dp0." -Djna.boot.library.path="%~dp0." -Djava.library.path="%~dp0." -Dnet.filebot.AcoustID.fpcalc="%~dp0fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory -Dnet.filebot.util.prefs.file="%~dp0data\prefs.properties" -jar "%~dp0FileBot.jar" %*