mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5489 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
d1bace5e4d
commit
7eade3f181
|
@ -303,9 +303,8 @@ public final class serverSystem {
|
||||||
if (p.exitValue() != 0) {
|
if (p.exitValue() != 0) {
|
||||||
cmd = app + " " + url + " &";
|
cmd = app + " " + url + " &";
|
||||||
p = Runtime.getRuntime().exec(cmd);
|
p = Runtime.getRuntime().exec(cmd);
|
||||||
p.waitFor();
|
// no error checking, because it blocks until firefox is closed
|
||||||
}
|
}
|
||||||
if (p.exitValue() != 0) throw new RuntimeException("EXEC ERROR: " + errorResponse(p));
|
|
||||||
} else if (systemOS == systemWindows) {
|
} else if (systemOS == systemWindows) {
|
||||||
// see forum at http://forum.java.sun.com/thread.jsp?forum=57&thread=233364&message=838441
|
// see forum at http://forum.java.sun.com/thread.jsp?forum=57&thread=233364&message=838441
|
||||||
if (System.getProperty("os.name").contains("2000")) cmd = "rundll32 url.dll,FileProtocolHandler " + url;
|
if (System.getProperty("os.name").contains("2000")) cmd = "rundll32 url.dll,FileProtocolHandler " + url;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user