From: jprocter Date: Tue, 7 Jun 2005 13:01:39 +0000 (+0000) Subject: added a couple of debug statements for unix browser launching problems. X-Git-Tag: Release_2_0~110 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=59de493fea8e8ee359443e4706414ae8ff2b86cc;p=jalview.git added a couple of debug statements for unix browser launching problems. --- diff --git a/src/jalview/util/BrowserLauncher.java b/src/jalview/util/BrowserLauncher.java index a36ea27..5404c77 100755 --- a/src/jalview/util/BrowserLauncher.java +++ b/src/jalview/util/BrowserLauncher.java @@ -564,7 +564,16 @@ public class BrowserLauncher { // Assume that we're on Unix and that Netscape (actually Firefox) is installed // First, attempt to open the URL in a currently running session of Netscape - process = Runtime.getRuntime().exec(new String[] { (String) browser, + + // JBPNote log debug + /* System.out.println("Executing : "+browser+" "+ + NETSCAPE_REMOTE_PARAMETER+" "+ + NETSCAPE_OPEN_PARAMETER_START + + url + + NETSCAPE_OPEN_NEW_WINDOW + + NETSCAPE_OPEN_PARAMETER_END); + */ + process = Runtime.getRuntime().exec(new String[] { (String) browser, NETSCAPE_REMOTE_PARAMETER, NETSCAPE_OPEN_PARAMETER_START + url + @@ -573,7 +582,9 @@ public class BrowserLauncher { try { int exitCode = process.waitFor(); if (exitCode != 0) { // if Netscape was not open - Runtime.getRuntime().exec(new String[] { (String) browser, url }); + // JBPNote log debug + // System.out.println("Executing : "+browser+" "+url+"\n"); + Runtime.getRuntime().exec(new String[] { (String) browser, url }); } } catch (InterruptedException ie) { throw new IOException("InterruptedException while launching browser: " + ie.getMessage());