]> git.lyx.org Git - features.git/commitdiff
Allow batch files with QProcess.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 29 Aug 2011 22:15:24 +0000 (22:15 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 29 Aug 2011 22:15:24 +0000 (22:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39566 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp
status.20x

index e4fa5b255992354620cd786a5eb76a25293fec4e..741feb233843834c95a596e06e2f361edfea39f7 100644 (file)
@@ -302,7 +302,10 @@ void SystemcallPrivate::startProcess(QString const & cmd, string const & path)
                                setEnv("TEXINPUTS", prefix + texinputs_);
                }
                state = SystemcallPrivate::Starting;
-               process_->start(cmd_);
+               if (os::shell() == os::CMD_EXE)
+                       process_->start(QLatin1String("cmd /d /c ") + cmd_);
+               else
+                       process_->start(cmd_);
        }
 }
 
index 165c18197e20976a14c9dab404a3a38f0cc010d2..9dabce6d1ea7f4526c0bc93147f96a1bffdf2b94 100644 (file)
@@ -261,6 +261,8 @@ What's new
 - On Windows, fix configuration failure when shell autorun commands are
   are enabled in the registry (bug 7718).
 
+- On Windows, allow using again batch files as converters.
+
 
 * ADVANCED FIND AND REPLACE