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()); }