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 {
UtilIO.writeString(outputFile, output);
List<String> args = Arrays.asList(new String[]{"libreoffice", "--headless", "--convert-to", "pdf", outputFile.getPath(), "--outdir", "/tmp"});
Process process = new ProcessBuilder(args).start();
ProcessBuilder pb = new ProcessBuilder(args);
Map env = pb.environment();
env.put("HOME", "/home/ofbiz");
env.put("USERNAME", "ofbiz");
Process process = pb.start();
InputStream is = process.getInputStream();
process.waitFor();
......