JAL-3247 First attempt at getdown code to add macOS startup filenames to the appargs...
[jalview.git] / getdown / src / getdown / launcher / src / main / java / com / threerings / getdown / launcher / GetdownApp.java
index 0c8cac5..f632b65 100644 (file)
@@ -108,7 +108,7 @@ public class GetdownApp
       e.printStackTrace();
     }
     
-    Thread.sleep(500);
+    //Thread.sleep(200);
 
     // record a few things for posterity
     log.info("------------------ VM Info ------------------");
@@ -120,7 +120,6 @@ public class GetdownApp
     log.info("-- User Name: " + System.getProperty("user.name"));
     log.info("-- User Home: " + System.getProperty("user.home"));
     log.info("-- Cur dir: " + System.getProperty("user.dir"));
-    log.info("-- JVL: " + System.getProperty("jvl"));
     log.info("-- startupFilesParameterString: " + startupFilesParameterString);
     log.info("---------------------------------------------");
 
@@ -270,6 +269,9 @@ public class GetdownApp
 
       protected JFrame _frame;
     };
+    if (getStartupFilesParameterString() != null) {
+      app.setStartupFilesFromParameterString(getStartupFilesParameterString());
+    }
     app.start();
     return app;
   }
@@ -277,4 +279,8 @@ public class GetdownApp
   public static void setStartupFilesParameterString(String parameters) {
     startupFilesParameterString = parameters;
   }
+  
+  public static String getStartupFilesParameterString() {
+    return startupFilesParameterString;
+  }
 }