I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit 025445fc authored by idk's avatar idk
Browse files

When checking whether to use Roaming appdata(like on older installs or on...

When checking whether to use Roaming appdata(like on older installs or on installs where people deliberately use Roaming appdata) also check whether clients.config exists and if it does, set home to Roaming appdata since people may be updating from routers before the migration to clients.config.d directories. This should fix #16
parent f62c7483
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,9 @@ public class WorkingDir {
File clientAppsConfig = new File(checkOld.getAbsolutePath(), "clients.config.d");
if (routerConfig.exists() && clientAppsConfig.exists() && clientAppsConfig.isDirectory())
home = appdata;
clientAppsConfig = new File(checkOld.getAbsolutePath(), "clients.config");
if (routerConfig.exists() && clientAppsConfig.exists())
home = appdata;
}
}
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_WINDOWS);
......
  • Maintainer

    The new lines should be inside an else {} as it's only needed if the check for clients.config.d fails.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment