From 8480641f2df68498dfe92cd0aee5f1785a9aa8c6 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 2 Dec 2014 11:51:12 +0100 Subject: [PATCH] fix to xvfb-run usage (quotes did not parse in xvfb-run, default values are appropriate) --- source/net/yacy/cora/util/Html2Image.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/cora/util/Html2Image.java b/source/net/yacy/cora/util/Html2Image.java index 6965b02bb..3821f6b42 100644 --- a/source/net/yacy/cora/util/Html2Image.java +++ b/source/net/yacy/cora/util/Html2Image.java @@ -87,14 +87,14 @@ public class Html2Image { if (!usexvfb) { message = OS.execSynchronous(commandline); if (destination.exists()) return true; - ConcurrentLog.warn("Html2Image", "failed to create pdf with command: " + commandline); + ConcurrentLog.warn("Html2Image", "failed to create pdf " + (proxy == null ? "" : "using proxy " + proxy) + " with command: " + commandline); for (String m: message) ConcurrentLog.warn("Html2Image", ">> " + m); } // if this fails, we should try to wrap the X server with a virtual screen using xvfb, this works on headless servers - commandline = "xvfb-run -a -s \"-screen 0 640x480x16\" " + commandline; + commandline = "xvfb-run -a " + commandline; message = OS.execSynchronous(commandline); if (destination.exists()) {usexvfb = true; return true;} - ConcurrentLog.warn("Html2Image", "failed to create pdf with command: " + commandline); + ConcurrentLog.warn("Html2Image", "failed to create pdf " + (proxy == null ? "" : "using proxy " + proxy) + " and xvfb with command: " + commandline); for (String m: message) ConcurrentLog.warn("Html2Image", ">> " + m); return false; } catch (IOException e) {