[texworks] typeset problem: File `ERROR:Systemcommandexecutionisdisabled(seePreferences).sty ' not found

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Fri Feb 22 10:49:38 CET 2013


Appears to originate here :

> QVariant TWScriptAPI::system(const QString& cmdline, bool waitForResult)
> {
>         // Paranoia
>         if(!m_script) return QVariant(tr("Internal error"));
> 
>         if(m_script->mayExecute(cmdline, m_target)) {
>                 TWSystemCmd *process = new TWSystemCmd(this, waitForResult);
>                 if (waitForResult) {
>                         process->setProcessChannelMode(QProcess::MergedChannels);
>                         process->start(cmdline);
>                         // make sure events (in particular GUI update events that should
>                         // inform the user of the progress) are processed before we make a
>                         // call that possibly blocks for a considerable amount of time
>                         QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 100);
>                         if (!process->waitForStarted()) {
>                                 process->deleteLater();
>                                 return QVariant(tr("Failed to execute system command: %1").arg(cmdline));
>                         }
>                         QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 100);
>                         if (!process->waitForFinished()) {
>                                 process->deleteLater();
>                                 return QVariant(tr("Error executing system command: %1").arg(cmdline));
>                         }
>                         return QVariant(process->getResult());
>                 }
>                 else {
>                         process->closeReadChannel(QProcess::StandardOutput);
>                         process->closeReadChannel(QProcess::StandardError);
>                         process->start(cmdline);
>                         return QVariant();
>                 }
>         }
>         else {
>                 if (waitForResult) {
>                         return QVariant(tr("System command execution is disabled (see Preferences)"));
>                 }
>                 // else result is null
>                 return QVariant();
>         }
> }


More information about the texworks mailing list