From 2b2e0e8a122180af6ee3c1fc6d7d0159191987f2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 10 May 2009 19:39:56 +0000 Subject: [PATCH] Patch from Peter. Commit the patch posted at beginning of this thread and see how big the problems are, especially Pavel's svn code. After solving the problems, I planned to integrate my previous GUI patches. see: http://marc.info/?l=lyx-devel&m=124136994215110&w=2 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29614 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/Systemcall.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index bfdf0690b3..038448b4f3 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -18,6 +18,8 @@ #include +#include + using namespace std; namespace lyx { @@ -39,6 +41,15 @@ int Systemcall::startscript(Starttype how, string const & what) } } +//#define DISABLE_EVALUATE_QPROCESS +#ifndef DISABLE_EVALUATE_QPROCESS + QString cmd = QString::fromLocal8Bit(command.c_str()); + QProcess process; + process.start(cmd); + process.waitForFinished(); + return process.exitCode(); +#endif + return ::system(command.c_str()); } -- 2.39.2