From 6adf079796b7bee280233742878c0754979c6d24 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 21 Aug 2016 23:33:01 +0200 Subject: [PATCH] Quote filenames used for forward-search with SumatraPDF Single quotes are special to our parser and must be either escaped or quoted if they are part of a filename, otherwise they are stripped out. See #10342. --- src/frontends/qt4/GuiPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 26d0c286d7..996be4916b 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -420,7 +420,7 @@ PrefOutput::PrefOutput(GuiPreferences * form) dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %{page+1} $$o\""); pdfCB->addItem(""); pdfCB->addItem("CMCDDE SUMATRA control [ForwardSearch(\\\"$$o\\\",\\\"$$t\\\",$$n,0,0,1)]"); - pdfCB->addItem("SumatraPDF -reuse-instance $$o -forward-search $$t $$n"); + pdfCB->addItem("SumatraPDF -reuse-instance \"$$o\" -forward-search \"$$t\" $$n"); pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"xpdf -raise -remote $$t.tmp $$o %{page+1}\""); pdfCB->addItem("okular --unique \"$$o#src:$$n $$f\""); pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\"");