mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Allow batch files with QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39548 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
563dd1fb3a
commit
d3c96214f3
@ -302,6 +302,9 @@ void SystemcallPrivate::startProcess(QString const & cmd, string const & path)
|
|||||||
setEnv("TEXINPUTS", prefix + texinputs_);
|
setEnv("TEXINPUTS", prefix + texinputs_);
|
||||||
}
|
}
|
||||||
state = SystemcallPrivate::Starting;
|
state = SystemcallPrivate::Starting;
|
||||||
|
if (os::shell() == os::CMD_EXE)
|
||||||
|
process_->start(QLatin1String("cmd /d /c ") + cmd_);
|
||||||
|
else
|
||||||
process_->start(cmd_);
|
process_->start(cmd_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user