* save settings to user.home unless specified othervia via application.dir
This commit is contained in:
parent
6a9df0fb03
commit
0c46748575
|
@ -92,12 +92,9 @@ public final class Settings {
|
||||||
if (applicationDirPath != null && applicationDirPath.length() > 0) {
|
if (applicationDirPath != null && applicationDirPath.length() > 0) {
|
||||||
// use given path
|
// use given path
|
||||||
applicationFolder = new File(applicationDirPath);
|
applicationFolder = new File(applicationDirPath);
|
||||||
} else if (getApplicationDeployment() != null) {
|
} else {
|
||||||
// create folder in user home (can't use working directory for web start applications)
|
// create folder in user home (can't use working directory for web start applications)
|
||||||
applicationFolder = new File(System.getProperty("user.home"), ".filebot");
|
applicationFolder = new File(System.getProperty("user.home"), ".filebot");
|
||||||
} else {
|
|
||||||
// use working directory
|
|
||||||
applicationFolder = new File(System.getProperty("user.dir"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// create folder if necessary
|
// create folder if necessary
|
||||||
|
|
Loading…
Reference in New Issue