System.arraycopy(args, i, folders, 0, folders.length);
WindowManager.createNewMainFrame(new CommandLineMainFrameBuilder(folders));
// If no initial path was specified, start a default main window.
if(WindowManager.getCurrentMainFrame() == null)
WindowManager.createNewMainFrame(new DefaultMainFramesBuilder());
// Done launching, wake up threads waiting for the application being launched.
// Important: this must be done before disposing the splash screen, as this would otherwise create a deadlock
// if the AWT event thread were waiting in #waitUntilLaunched .
synchronized(LAUNCH_LOCK) {