adds the -app mode flag

Former-commit-id: ce78f3b72f
Former-commit-id: f49cc93ff57dd8bea4bb5e9b2e6c5f9977651f32
This commit is contained in:
idk
2022-09-15 23:34:42 -04:00
parent 18999908c2
commit 6311562a3d
4 changed files with 37 additions and 16 deletions

View File

@ -369,7 +369,7 @@ public class I2PChromium extends I2PCommonBrowser {
* @since 0.0.1
*/
public ProcessBuilder appProcessBuilder() {
return processBuilder(new String[] {"--app"});
return processBuilder(new String[] {"--app=http://127.0.0.1:7657"});
}
/**
@ -383,7 +383,8 @@ public class I2PChromium extends I2PCommonBrowser {
*/
public ProcessBuilder appProcessBuilder(String[] args) {
ArrayList<String> argList = new ArrayList<String>();
argList.add("--app");
argList.add("--app=http://127.0.0.1:7657");
// argList.add("http://127.0.0.1:7657");
if (args != null) {
if (args.length > 0) {
for (String arg : args) {