diff -r c19ac78b940e -r aa82f9de8e33 launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/WebDebug.java --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/WebDebug.java Sat Jun 08 12:09:10 2013 +0200 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/WebDebug.java Tue Jun 11 15:11:56 2013 +0200 @@ -66,11 +66,13 @@ @Override public void run() { try { - String p = "/home/jarda/src/bck2brwsr/html~demo/twitter/src/main/resources/org/apidesign/html/demo/twitter/index.html"; - File f = new File(p); - String[] args = {"--livehtml", f.getAbsolutePath()}; - File dir = f.getParentFile(); - cliHandler(args, toDbg, this, System.err, dir); + String p = System.getProperty("startpage.file"); + File f; + if (p != null && (f = new File(p)).exists()) { + String[] args = {"--livehtml", f.getAbsolutePath()}; + File dir = f.getParentFile(); + cliHandler(args, toDbg, this, System.err, dir); + } } catch (Exception ex) { LOG.log(Level.SEVERE, null, ex); } @@ -152,7 +154,7 @@ for (;;) { WebDebug.this.flush(); try { - current = pending.poll(100, TimeUnit.MILLISECONDS); + current = pending.poll(5, TimeUnit.MILLISECONDS); if (current == null) { return 0; }