Changeset 5375e42


Ignore:
Timestamp:
Apr 29, 2013 5:55:27 PM (8 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
3210dd8
Parents:
ebb2f13
Message:

minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/startup/WorkingDir.java

    rebb2f13 r5375e42  
    7272        if (dir == null)
    7373            dir = System.getProperty(PROP_WORKING_DIR);
     74
    7475        boolean isWindows = SystemVersion.isWindows();
    7576        File dirf = null;
     
    8586            } else if (SystemVersion.isMac()) {
    8687                String appdata = "/Library/Application Support/";
    87                 if (new File(home,appdata).exists()&&false==(new File(home,WORKING_DIR_DEFAULT).exists())) {
     88                File old = new File(home,WORKING_DIR_DEFAULT);
     89                if (old.exists() && old.isDirectory())
     90                    dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT);
     91                else {
    8892                    home = home+appdata;
    8993                    dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_MAC);
    90                 } else {
    91                     dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT);
    9294                }
    9395            } else {
Note: See TracChangeset for help on using the changeset viewer.