JAL-3247 JAL-3254 Fixed file association launch behaviour in getdown in Windows
[jalview.git] / getdown / src / getdown / launcher / src / main / java / com / threerings / getdown / launcher / Getdown.java
index f87382a..33f97e8 100644 (file)
@@ -1043,7 +1043,7 @@ public abstract class Getdown extends Thread
       if (p != null && p.length() > 0) {
         String[] filenames;
         if (p.startsWith(q) && p.endsWith(q)) {
-          filenames = p.substring(1,p.length()-1).split("\" \"");
+          filenames = p.substring(q.length(),p.length()-q.length()).split(q+" "+q);
         } else {
           filenames = new String[]{p};
         }
@@ -1056,7 +1056,6 @@ public abstract class Getdown extends Thread
           }
           // jvl files
           if (_app.locatorFileExtension.equals(ext.toLowerCase())) {
-            // Do something special with this here
             File f = new File(filename);
             if (f.exists()) {
               String appbase = null;