fixes bug 0013013 but reveals lack of a 'features retrieved' flag that should be...
[jalview.git] / src / jalview / bin / Jalview.java
index 1a67c05..a734054 100755 (executable)
@@ -79,6 +79,7 @@ public class Jalview
         System.exit(0);\r
           }\r
 \r
+          Cache.loadProperties(aparser.getValue("props")); // must do this before anything else!\r
 \r
           if (aparser.contains("nodisplay"))\r
           {\r
@@ -103,8 +104,6 @@ public class Jalview
             System.exit(0);\r
           }\r
 \r
-        Cache.loadProperties(aparser.getValue("props"));\r
-\r
         Desktop desktop = null;\r
         if( !headless )\r
         {\r
@@ -164,7 +163,7 @@ public class Jalview
             if (file.endsWith(".jar"))\r
               format = "Jalview";\r
             else\r
-              format = jalview.io.IdentifyFile.Identify(file, protocol);\r
+              format = new jalview.io.IdentifyFile().Identify(file, protocol);\r
 \r
             System.out.println("Opening: " + format + " file " + file);\r
 \r
@@ -239,7 +238,7 @@ public class Jalview
             }\r
             else\r
             {\r
-              format = jalview.io.IdentifyFile.Identify(file, protocol);\r
+              format = new jalview.io.IdentifyFile().Identify(file, protocol);\r
               desktop.LoadFile(file, protocol, format);\r
             }\r
           }\r