From: Charles Ofoegbu Date: Mon, 15 Dec 2014 15:35:54 +0000 (+0000) Subject: update HtmlSvgOutput to ignore browser invocation when running in headless mode X-Git-Tag: Jalview_2_9~121^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=81edd609f9841a84d5799d221277d45413a177cf;p=jalview.git update HtmlSvgOutput to ignore browser invocation when running in headless mode --- diff --git a/src/jalview/io/HtmlSvgOutput.java b/src/jalview/io/HtmlSvgOutput.java index 4793ac4..68f9924 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();