]> git.lyx.org Git - features.git/commitdiff
Patch from Peter.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 10 May 2009 19:39:56 +0000 (19:39 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 10 May 2009 19:39:56 +0000 (19:39 +0000)
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

index bfdf0690b313f410665f2c2b9a6d8e804c022d43..038448b4f3d860e16ea54d9aac15105bee91dff0 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <cstdlib>
 
+#include <QProcess>
+
 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());
 }