3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Asger Alstrup
8 * Interface cleaned up by
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
16 #include "support/Systemcall.h"
17 #include "support/os.h"
29 int Systemcall::startscript(Starttype how, string const & what)
31 string command = what;
33 if (how == DontWait) {
34 switch (os::shell()) {
39 command = "start /min " + command;
44 //#define DISABLE_EVALUATE_QPROCESS
45 #ifndef DISABLE_EVALUATE_QPROCESS
46 QString cmd = QString::fromLocal8Bit(command.c_str());
49 process.waitForFinished();
50 return process.exitCode();
53 return ::system(command.c_str());
56 } // namespace support