From 6e7bd1653026b83d08a9506f473a71c299baa0ae Mon Sep 17 00:00:00 2001 From: Dimitriy Ryazantcev Date: Tue, 20 Nov 2012 23:56:00 +0200 Subject: [PATCH 3/5] Azoth SHX: try to use cmd.exe on Windows platform --- src/plugins/azoth/plugins/shx/shx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/azoth/plugins/shx/shx.cpp b/src/plugins/azoth/plugins/shx/shx.cpp index 1dbe40b..b57f145 100644 --- a/src/plugins/azoth/plugins/shx/shx.cpp +++ b/src/plugins/azoth/plugins/shx/shx.cpp @@ -93,7 +93,11 @@ namespace SHX SIGNAL (finished (int, QProcess::ExitStatus)), this, SLOT (handleFinished ())); +#ifdef Q_OS_WIN32 + proc->start ("cmd.exe", QStringList () << "/C" << text); +#else proc->start ("/bin/sh", { "-c", text }); +#endif } void Plugin::handleFinished () -- 1.7.11.msysgit.1