From 68dcaa7437590985b988a95338a36821c0ee641e Mon Sep 17 00:00:00 2001 From: Charles Ofoegbu Date: Mon, 15 Dec 2014 15:35:54 +0000 Subject: [PATCH] update HtmlSvgOutput to ignore browser invocation when running in headless mode --- src/jalview/io/HtmlSvgOutput.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/HtmlSvgOutput.java b/src/jalview/io/HtmlSvgOutput.java index b79d35d..0ffbea1 100644 --- a/src/jalview/io/HtmlSvgOutput.java +++ b/src/jalview/io/HtmlSvgOutput.java @@ -105,8 +105,11 @@ public class HtmlSvgOutput out.write(htmlData.getBytes()); out.flush(); out.close(); - + if (!(System.getProperty("java.awt.headless") != null && System + .getProperty("java.awt.headless").equals("true"))) + { jalview.util.BrowserLauncher.openURL("file:///" + file); + } } catch (Exception e) { e.printStackTrace(); -- 1.7.10.2