// We'll only open the default file if the desktop is visible.\r
//////////////////////\r
if (\r
- !headless &&\r
- jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true))\r
+ !headless\r
+ && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true)\r
+ )\r
{\r
\r
file = jalview.bin.Cache.getDefault("STARTUP_FILE",\r
"http://www.jalview.org/examples/exampleFile.jar");\r
+\r
protocol = "File";\r
\r
if (file.indexOf("http:") > -1)\r
\r
if (file.endsWith(".jar"))\r
{\r
- Jalview2XML.LoadJalviewAlign(file);\r
+ new Jalview2XML().LoadJalviewAlign(file);\r
}\r
else\r
{\r