[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:42 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=75e6e3b
The following commit has been merged in the master branch:
commit 75e6e3b2f8025e8704a3b9096152219edee0b906
Author: Albert Vaca <albertvaka at gmail.com>
Date: Wed Jun 1 12:19:28 2016 +0200
Runcommand can now execute commands with pipes and other shell constructs
---
plugins/runcommand/runcommandplugin.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/plugins/runcommand/runcommandplugin.cpp b/plugins/runcommand/runcommandplugin.cpp
index 9b0a834..c641716 100644
--- a/plugins/runcommand/runcommandplugin.cpp
+++ b/plugins/runcommand/runcommandplugin.cpp
@@ -64,10 +64,9 @@ bool RunCommandPlugin::receivePackage(const NetworkPackage& np)
if (value == QJsonValue::Undefined) {
qCWarning(KDECONNECT_PLUGIN_RUNCOMMAND) << key << "is not a configured command";
}
- const QJsonObject command = value.toObject();
- QString name = command["name"].toString();
- QStringList commandLine = KShell::splitArgs(command["command"].toString());
- QProcess::startDetached(commandLine.at(0), commandLine.mid(1));
+ const QJsonObject commandJson = value.toObject();
+ qDebug() << "Running:" << "/bin/sh" << "-c" << commandJson["command"].toString();
+ QProcess::startDetached("/bin/sh", QStringList()<< "-c" << commandJson["command"].toString());
return true;
}
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list