Commit 6bc65c48 authored by Sabine Teufl's avatar Sabine Teufl
Browse files

windows bug fixed

refs 1407
parent cc02dcc4
......@@ -275,10 +275,8 @@ public class RequirementUtils {
throw new IllegalStateException("Cannot find acrobat reader.");
String acrobat = regresult.substring(indexstart + 6, indexend).trim();
if(runtime.exec(
format("%s /A \"page=%d\" \"%s\"", acrobat, page, file.getAbsoluteFile()))
.waitFor() != 0)
throw new IllegalStateException("Cannot launch acrobat reader.");
runtime.exec(format("%s /A \"page=%d\" \"%s\"", acrobat, page,
file.getAbsoluteFile()));
} else if(System.getProperty("os.name").contains("OS X")) {
// @CodeFormatterOff
String applescript =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment