Changes in / [c030852:f00ac6a]


Ignore:
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    rc030852 rf00ac6a  
    4444import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
    4545import net.i2p.router.startup.CreateRouterInfoJob;
     46import net.i2p.router.startup.PortableWorkingDir;
    4647import net.i2p.router.startup.StartupJob;
    4748import net.i2p.router.startup.WorkingDir;
     
    271272        String migrate = System.getProperty("i2p.dir.migrate");
    272273        boolean migrateFiles = Boolean.parseBoolean(migrate);
    273         String userDir = WorkingDir.getWorkingDir(envProps, migrateFiles);
     274
     275
     276        String isPortableStr = System.getProperty("i2p.dir.portableMode");
     277        boolean isPortable = Boolean.parseBoolean(isPortableStr);
     278        String userDir = (!isPortable) ? WorkingDir.getWorkingDir(envProps, migrateFiles) : PortableWorkingDir.getWorkingDir(envProps, migrateFiles);
    274279
    275280        // Use the router.config file specified in the router.configLocation property
Note: See TracChangeset for help on using the changeset viewer.