From 20ed35b6cda059c0a7d728b255fd6e74bc9d6753 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Thu, 25 Jul 2019 10:01:03 +0200 Subject: [PATCH] Fix forward search The provided working directory was not properly set when the underlying process starts. It is not clear, why only this one call to one.startscript() needs fixing. OTOH, the other calls do not use 'Systemcall::DontWait' as the first parameter. --- src/frontends/qt/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index 6e87f007f9..581967fc4d 100644 --- a/src/frontends/qt/GuiView.cpp +++ b/src/frontends/qt/GuiView.cpp @@ -4496,7 +4496,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) command = subst(command, "$$t", texname); command = subst(command, "$$o", outname); - PathChanger p(path); + volatile PathChanger p(path); Systemcall one; one.startscript(Systemcall::DontWait, command); break; -- 2.39.5