mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fix for open browser on windows 2000
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5029 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
b0724e5ec0
commit
7e92484400
|
@ -299,7 +299,8 @@ public final class serverSystem {
|
|||
if (p.exitValue() != 0) throw new RuntimeException("EXEC ERROR: " + errorResponse(p));
|
||||
} else if (systemOS == systemWindows) {
|
||||
// see forum at http://forum.java.sun.com/thread.jsp?forum=57&thread=233364&message=838441
|
||||
cmd = "rundll32 url.dll,FileProtocolHandler \"" + url + "\"";
|
||||
if (System.getProperty("os.name").contains("2000")) cmd = "rundll32 url.dll,FileProtocolHandler " + url;
|
||||
else cmd = "rundll32 url.dll,FileProtocolHandler \"" + url + "\"";
|
||||
//cmd = "cmd.exe /c start javascript:document.location='" + url + "'";
|
||||
p = Runtime.getRuntime().exec(cmd);
|
||||
p.waitFor();
|
||||
|
|
Loading…
Reference in New Issue
Block a user