Pavel Sanda wrote:
Peter Kümmel wrote:
Pavel Sanda wrote:
i dont understand. does it work for path/filenames with spaces too?
QProcess passes the whole string (with spaces) as one argument, so we
don't need any quotes, see patch in branch.
I mean this commit:
http://www.lyx.org/trac/changeset/27647
then we shouldn't use this function when calling QProcess. but to change
this function as this patch does is wrong and should be reverted.
by the way i have more general question - do we intend to use this type
of call in all cases we use external commands now? cnsider RCS for example,
it is not intended to be run in the background and the current architecture
works - this way we need to test everything again... wouldn't be better
to use it only for latex compilation?
It could be switched between asynchronous and synchronous calls:
/// whether to wait for completion
enum Starttype {
Wait, //< wait for completion before returning from start()
DontWait //< don't wait for completion
};
/** Start child process.
*/
int start(Starttype how);
pavel