git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc798f1
)
added a couple of debug statements for unix browser launching problems.
author
jprocter
<Jim Procter>
Tue, 7 Jun 2005 13:01:39 +0000
(13:01 +0000)
committer
jprocter
<Jim Procter>
Tue, 7 Jun 2005 13:01:39 +0000
(13:01 +0000)
src/jalview/util/BrowserLauncher.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/BrowserLauncher.java
b/src/jalview/util/BrowserLauncher.java
index
a36ea27
..
5404c77
100755
(executable)
--- 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
// 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 +
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
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());
}
} catch (InterruptedException ie) {
throw new IOException("InterruptedException while launching browser: " + ie.getMessage());