always pass --new-instance to firefox

Former-commit-id: 02c148ccbd
Former-commit-id: dccc20ab1d48526b93d8e154ed8112cd3610f72b
This commit is contained in:
idk
2022-09-05 10:16:52 -04:00
parent ced9f14d88
commit 84d9448921

View File

@ -367,15 +367,16 @@ public class I2PFirefox extends I2PCommonBrowser {
int arglength = 0;
if (args != null)
arglength = args.length;
String[] newArgs = new String[arglength + 4];
String[] newArgs = new String[arglength + 5];
newArgs[0] = firefox;
newArgs[1] = "-attach-console";
newArgs[2] = "--profile";
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
newArgs[2] = "--new-instance";
newArgs[3] = "--profile";
newArgs[4] = I2PFirefoxProfileBuilder.profileDirectory();
if (args != null) {
if (arglength > 0) {
for (int i = 0; i < arglength; i++) {
newArgs[i + 4] = args[i];
newArgs[i + 5] = args[i];
}
}
}