Try not setting the base dir for now since that seems to be causing it to stall on my wiwindows machine

This commit is contained in:
idk
2021-04-03 18:45:30 -04:00
parent 4df405978f
commit b4b09ea5da

View File

@ -15,8 +15,6 @@ import net.i2p.router.RouterLaunch;
*/
public class WinLauncher {
/** this is totally undocumented */
// private static final String APP_PATH = "jpackage.app-path";
private static final String LOCALAPPDATA = System.getenv("LOCALAPPDATA");
public static void main(String[] args) throws Exception {
@ -31,10 +29,10 @@ public class WinLauncher {
System.exit(1);
}
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
// System.setProperty("i2p.dir.base", programs.getAbsolutePath());
System.setProperty("i2p.dir.config", home.getAbsolutePath());
System.setProperty("router.pid", String.valueOf(ProcessHandle.current().pid()));
System.out.println(programs.getAbsolutePath() +"\n\t"+ home.getAbsolutePath() +"\n\t"+ String.valueOf(ProcessHandle.current().pid()));
System.out.println("\t"+programs.getAbsolutePath() +"\n\t"+ home.getAbsolutePath() +"\n\t"+ String.valueOf(ProcessHandle.current().pid()));
try {
// TODO: See if I need to do anything like this for Windows