JAL-3633 ensure check both http:// or https:// for urls
[jalview.git] / src / jalview / bin / Jalview.java
index 021aad6..33db70b 100755 (executable)
@@ -64,6 +64,7 @@ import jalview.io.NewickFile;
 import jalview.io.gff.SequenceOntologyFactory;
 import jalview.schemes.ColourSchemeI;
 import jalview.schemes.ColourSchemeProperty;
+import jalview.util.HttpUtils;
 import jalview.util.MessageManager;
 import jalview.util.Platform;
 import jalview.ws.jws2.Jws2Discoverer;
@@ -373,7 +374,8 @@ public class Jalview
     if (!lafSet)
     {
       setSystemLookAndFeel();
-      if (Platform.isLinux()) {
+      if (Platform.isLinux())
+      {
         setMetalLookAndFeel();
       }
       if (Platform.isAMac())
@@ -510,7 +512,7 @@ public class Jalview
       }
       System.out.println("CMD [-open " + file + "] executed successfully!");
 
-      if (!file.startsWith("http://"))
+      if (!HttpUtils.startsWithHttpOrHttps(file))
       {
         if (!(new File(file)).exists())
         {