Skip to content

Commit

Permalink
[java] Setting environment for legacy Firefox process.
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 5, 2018
1 parent bf81e77 commit ff7c00b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -141,8 +140,8 @@ public void start() throws IOException {

List<String> cmdArray = new ArrayList<>(getArgs());
cmdArray.add("-foreground");

process = new CommandLine(binary.getPath(), Iterables.toArray(cmdArray, String.class));
process.setEnvironmentVariables(env);
process.updateDynamicLibraryPath(env.get(CommandLine.getLibraryPathPropertyName()));
// On Snow Leopard, beware of problems the sqlite library
if (! (Platform.getCurrent().is(Platform.MAC) && Platform.getCurrent().getMinorVersion() > 5)) {
Expand Down

0 comments on commit ff7c00b

Please sign in to comment.