]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.cpp
Fix QProcess code on posix systems and reenable it by default, in order
[features.git] / src / support / filetools.cpp
index 69a6c4d7e534bdfa36ea87585b9cfbc0688a331c..4ee6247e4fc08649e9c4eeda5040e39f10c8c193 100644 (file)
@@ -51,6 +51,8 @@
 
 using namespace std;
 
+#define USE_QPROCESS
+
 namespace lyx {
 namespace support {
 
@@ -136,9 +138,13 @@ string const quoteName(string const & name, quote_style style)
                // 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, "\\", "\\\\"), "\"", "\\\"")
                     + "\"";