de5a7e1c by Ean Schuessler

Merge branch 'BF-3913' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet

2 parents 55e32ab2 7fdd9705
...@@ -43,7 +43,11 @@ public class LibreOfficeRenderer { ...@@ -43,7 +43,11 @@ public class LibreOfficeRenderer {
43 UtilIO.writeString(outputFile, output); 43 UtilIO.writeString(outputFile, output);
44 44
45 List<String> args = Arrays.asList(new String[]{"libreoffice", "--headless", "--convert-to", "pdf", outputFile.getPath(), "--outdir", "/tmp"}); 45 List<String> args = Arrays.asList(new String[]{"libreoffice", "--headless", "--convert-to", "pdf", outputFile.getPath(), "--outdir", "/tmp"});
46 Process process = new ProcessBuilder(args).start(); 46 ProcessBuilder pb = new ProcessBuilder(args);
47 Map env = pb.environment();
48 env.put("HOME", "/home/ofbiz");
49 env.put("USERNAME", "ofbiz");
50 Process process = pb.start();
47 InputStream is = process.getInputStream(); 51 InputStream is = process.getInputStream();
48 process.waitFor(); 52 process.waitFor();
49 53
......