to catch early possible problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29634
a592a061-630c-0410-9148-
cb99ea01b6c8
FileName const configure_script(addName(system_support().absFilename(), "configure.py"));
configure_command_ = os::python() + ' ' +
- quoteName(configure_script.toFilesystemEncoding()) +
+ quoteName(configure_script.toFilesystemEncoding(), quote_python) +
with_version_suffix();
LYXERR(Debug::INIT, "<package>\n"
#include <QProcess>
-#define DISABLE_EVALUATE_QPROCESS
+#define USE_QPROCESS
using namespace std;
// Reuse of instance
int Systemcall::startscript(Starttype how, string const & what)
{
-#ifdef DISABLE_EVALUATE_QPROCESS
+#ifndef USE_QPROCESS
string command = what;
if (how == DontWait) {
using namespace std;
+#define USE_QPROCESS
+
namespace lyx {
namespace support {
// filenames to child processes if possible. We store them in
// a python script instead, where we don't have these
// limitations.
+#ifndef USE_QPROCESS
return (os::shell() == os::UNIX) ?
'\'' + name + '\'':
'"' + name + '"';
+#else
+ return '"' + name + '"';
+#endif
case quote_python:
return "\"" + subst(subst(name, "\\", "\\\\"), "\"", "\\\"")
+ "\"";