fix windows url launcher

This commit is contained in:
zzz
2008-11-26 18:32:51 +00:00
parent 41d98acc95
commit daac598bde
4 changed files with 11 additions and 2 deletions

View File

@ -74,7 +74,11 @@ public class UrlLauncher {
bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream("browser.reg"), "UTF-16"));
for (String line; (line = bufferedReader.readLine()) != null; ) {
if (line.startsWith("@=")) {
browserString = "\"" + line.substring(3, line.toLowerCase().indexOf(".exe") + 4) + "\"";
// we should really use the whole line and replace %1 with the url
browserString = line.substring(3, line.toLowerCase().indexOf(".exe") + 4);
if (browserString.startsWith("\\\""))
browserString = browserString.substring(2);
browserString = "\"" + browserString + "\"";
}
}
try {