From 29bd435069afb8ed662313d810b03c75c830a140 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Tue, 16 Jun 2020 18:00:51 -0500 Subject: [PATCH] JAL-3662 simple fix for CLI not using right format for output of alignment. --- src/jalview/bin/Jalview.java | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 4a5c733..4522167 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -110,6 +110,7 @@ public class Jalview implements ApplicationSingletonI // } public static Jalview getInstance() { + System.out.println("Hello, MW!!!!!!!!!!!!"); return (Jalview) ApplicationSingletonProvider .getInstance(Jalview.class); } @@ -330,9 +331,14 @@ public class Jalview implements ApplicationSingletonI if (aparser.contains("nodisplay") || aparser.contains("nogui") || aparser.contains("headless")) { + // BH Is this necessary? Seems like a hack; was removed for applet branch System.setProperty("java.awt.headless", "true"); headless = true; } + if ("true".equals(System.getProperty("java.awt.headless"))) + { + headless = true; + } // < 0) -- 1.7.10.2