git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update HtmlSvgOutput to ignore browser invocation when running in headless mode
[jalview.git]
/
src
/
jalview
/
io
/
HtmlSvgOutput.java
diff --git
a/src/jalview/io/HtmlSvgOutput.java
b/src/jalview/io/HtmlSvgOutput.java
index
b79d35d
..
0ffbea1
100644
(file)
--- 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();
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);
jalview.util.BrowserLauncher.openURL("file:///" + file);
+ }
} catch (Exception e)
{
e.printStackTrace();
} catch (Exception e)
{
e.printStackTrace();