From: Jim Procter Date: Thu, 24 Sep 2020 13:36:17 +0000 (+0100) Subject: JAL-3757 JAL-3689 use AppletFormat.checkProtocol to resolve startup file’s retrieval... X-Git-Tag: Release_2_11_1_2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8d5cf09fa18cde0cb0d0362adc64571be5b08dc6;p=jalview.git JAL-3757 JAL-3689 use AppletFormat.checkProtocol to resolve startup file’s retrieval protocol (sorry @benzoid for finessing you !) --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 7ad7320..3a238bb 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -691,12 +691,7 @@ public class Jalview jalview.bin.Cache.removeProperty("STARTUP_FILE"); } - protocol = DataSourceType.FILE; - - if (HttpUtils.startsWithHttpOrHttps(file)) - { - protocol = DataSourceType.URL; - } + protocol = AppletFormatAdapter.checkProtocol(file); if (file.endsWith(".jar")) {