Skip to content

Commit

Permalink
[java] Passing extra options to legacy Firefox process
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 5, 2018
1 parent ff7c00b commit ad4d1c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ protected String getPath() {
return executable.getPath();
}

protected List<String> getExtraOptions() {
return extraOptions;
}

public long getTimeout() {
return timeout;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public void start() throws IOException {
Map<String, String> env = envBuilder.build();

List<String> cmdArray = new ArrayList<>(getArgs());
cmdArray.addAll(binary.getExtraOptions());
cmdArray.add("-foreground");
process = new CommandLine(binary.getPath(), Iterables.toArray(cmdArray, String.class));
process.setEnvironmentVariables(env);
Expand Down

0 comments on commit ad4d1c7

Please sign in to comment.