void MeltJob::start() { QString shotcutPath = qApp->applicationDirPath(); #ifdef Q_OS_WIN QFileInfo meltPath(shotcutPath, "qmelt.exe"); #else QFileInfo meltPath(shotcutPath, "qmelt"); #endif setReadChannel(QProcess::StandardError); QStringList args; args << "-verbose"; args << "-progress2"; args << "-abort"; if (m_args.size() > 0) { args.append(m_args); } else if (m_useMultiConsumer) { args << xmlPath() + "?multi:1"; } else { args << xmlPath(); } LOG_DEBUG() << meltPath.absoluteFilePath() << args; #ifdef Q_OS_WIN if (m_isStreaming) args << "-getc"; QProcess::start(meltPath.absoluteFilePath(), args); #else args.prepend(meltPath.absoluteFilePath()); QProcess::start("/usr/bin/nice", args); #endif AbstractJob::start(); }
void MeltJob::start() { QString shotcutPath = qApp->applicationDirPath(); #ifdef Q_OS_WIN QFileInfo meltPath(shotcutPath, "qmelt.exe"); #else QFileInfo meltPath(shotcutPath, "qmelt"); #endif setReadChannel(QProcess::StandardError); QStringList args; args << "-progress2"; args << "-abort"; args << m_xml; qDebug() << meltPath.absoluteFilePath() << args; #ifdef Q_OS_WIN QProcess::start(meltPath.absoluteFilePath(), args); #else args.prepend(meltPath.absoluteFilePath()); QProcess::start("/usr/bin/nice", args); #endif AbstractJob::start(); }