Skip to content

Commit

Permalink
add --app flag to I2PGenericUnsafeBrowser.java
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Oct 12, 2022
1 parent 771abcc commit 0138803
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,13 @@ public ProcessBuilder baseProcessBuilder(String[] args) {
String[] newArgs;
if (getOperatingSystem() == "windows" &&
browser.toLowerCase().contains("edge")) {
newArgs = new String[arglength + 2];
newArgs = new String[arglength + 3];
newArgs[0] = browser;
newArgs[1] = "--user-data-dir=" + runtimeDirectory();
newArgs[1] = "--app";
newArgs[2] = "--user-data-dir=" + runtimeDirectory();
if (args != null && arglength > 0) {
for (int i = 0; i < arglength; i++) {
newArgs[i + 2] = args[i];
newArgs[i + 3] = args[i];
}
}
} else {
Expand Down

0 comments on commit 0138803

Please sign in to comment.