deal with spaces for launching urls for reference

This commit is contained in:
benfry
2003-08-05 01:35:11 +00:00
parent 51c3eed974
commit 6966de1a49
2 changed files with 64 additions and 25 deletions

View File

@@ -1010,7 +1010,9 @@ public class PdeBase extends Frame
} else {
// just launching the .html file via the shell works
// but make sure to chmod +x the .html files first
Runtime.getRuntime().exec("cmd /c " + url);
// also place quotes around it in case there's a space
// in the user.dir part of the url
Runtime.getRuntime().exec("cmd /c \"" + url + "\"");
}
#ifdef MACOS
@@ -1029,6 +1031,8 @@ public class PdeBase extends Frame
//Runtime.getRuntime().exec("mozilla "+ currentDir +
// "/reference/index.html");
// another wild ass guess
// probably need to replace spaces or use quotes here
Runtime.getRuntime().exec("mozilla " + url);
} else {