+ // almost finally check the startup file arguments
+ for (File f : startupFiles) {
+ _appargs.add(f.getAbsolutePath());
+ break; // Only add one file to open
+ }
+
+ // check if one arg with recognised extension
+ if ( _appargs.size() == 1 && _appargs.get(0) != null ) {
+ String filename = _appargs.get(0);
+ String ext = null;
+ int j = filename.lastIndexOf('.');
+ if (j > -1) {
+ ext = filename.substring(j+1);
+ }
+ if (startupFileExtensions.contains(ext.toLowerCase())) {
+ _appargs.add(0, "-open");
+ } else if (locatorFileExtension.equals(ext.toLowerCase())) {
+ // deal with this when first encountered in Getdown!
+ }
+ }
+