Allow batch files with QProcess.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39566 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-08-29 22:15:24 +00:00
parent a6aebc801a
commit e28c6f4d95
2 changed files with 6 additions and 1 deletions

View 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_);
}
}

View 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