* save settings to user.home unless specified othervia via application.dir

This commit is contained in:
Reinhard Pointner 2013-02-03 00:46:46 +00:00
parent 6a9df0fb03
commit 0c46748575
1 changed files with 1 additions and 4 deletions

View File

@ -92,12 +92,9 @@ public final class Settings {
if (applicationDirPath != null && applicationDirPath.length() > 0) {
// use given path
applicationFolder = new File(applicationDirPath);
} else if (getApplicationDeployment() != null) {
} else {
// create folder in user home (can't use working directory for web start applications)
applicationFolder = new File(System.getProperty("user.home"), ".filebot");
} else {
// use working directory
applicationFolder = new File(System.getProperty("user.dir"));
}
// create folder if necessary