mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 00:02:59 +00:00
minor cleanup
This commit is contained in:
1 parent
ebb2f1396b
commit
5375e425ac
1 file changed
+5
-3
@@ -71,6 +71,7 @@ public class WorkingDir {
|
||||
dir = envProps.getProperty(PROP_WORKING_DIR);
|
||||
if (dir == null)
|
||||
dir = System.getProperty(PROP_WORKING_DIR);
|
||||
|
||||
boolean isWindows = SystemVersion.isWindows();
|
||||
File dirf = null;
|
||||
if (dir != null) {
|
||||
@@ -84,11 +85,12 @@ public class WorkingDir {
|
||||
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_WINDOWS);
|
||||
} else if (SystemVersion.isMac()) {
|
||||
String appdata = "/Library/Application Support/";
|
||||
if (new File(home,appdata).exists()&&false==(new File(home,WORKING_DIR_DEFAULT).exists())) {
|
||||
File old = new File(home,WORKING_DIR_DEFAULT);
|
||||
if (old.exists() && old.isDirectory())
|
||||
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT);
|
||||
else {
|
||||
home = home+appdata;
|
||||
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_MAC);
|
||||
} else {
|
||||
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT);
|
||||
}
|
||||
} else {
|
||||
if (DAEMON_USER.equals(System.getProperty("user.name")))
|
||||
|
||||
Reference in new issue
Block a user