Skip to content
Snippets Groups Projects
Commit 64140e59 authored by loki der quaeler's avatar loki der quaeler Committed by loki der quaeler
Browse files

Spaces in the PDF file path were preventing PDF external open

. Letting the Runtime exec operation handle any potential spaces in the filepath.

[Bug][Toolbox]
parent c015b83d
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ public class HelpPDFHandler extends AbstractHandler implements IHandler {
try {
final File pdfFile = getDocFile("/pdfs/" + pdf);
if (osOpensPDF) {
final String openCommand = "open " + pdfFile.getAbsolutePath();
final String[] openCommand = { "open", pdfFile.getAbsolutePath() };
Runtime.getRuntime().exec(openCommand);
} else if (useEmbeddedViewer) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment