[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:29:07 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=f25dc10

The following commit has been merged in the master branch:
commit f25dc109f31768e8acca89171887ce8115b64c21
Author: Aleix Pol <aleixpol at kde.org>
Date:   Sat Sep 12 13:45:02 2015 +0200

    Don't lock the daemon when running a process is started
---
 plugins/runcommand/runcommandplugin.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/runcommand/runcommandplugin.cpp b/plugins/runcommand/runcommandplugin.cpp
index 0ffad43..9b0a834 100644
--- a/plugins/runcommand/runcommandplugin.cpp
+++ b/plugins/runcommand/runcommandplugin.cpp
@@ -28,6 +28,7 @@
 #include <QLoggingCategory>
 #include <QSettings>
 #include <QJsonDocument>
+#include <KShell>
 
 #include <core/networkpackage.h>
 #include <core/device.h>
@@ -63,10 +64,10 @@ bool RunCommandPlugin::receivePackage(const NetworkPackage& np)
         if (value == QJsonValue::Undefined) {
             qCWarning(KDECONNECT_PLUGIN_RUNCOMMAND) << key << "is not a configured command";
         }
-        QJsonObject command = value.toObject();
+        const QJsonObject command = value.toObject();
         QString name = command["name"].toString();
-        QString commandLine = command["command"].toString();
-        QProcess::execute(commandLine);
+        QStringList commandLine = KShell::splitArgs(command["command"].toString());
+        QProcess::startDetached(commandLine.at(0), commandLine.mid(1));
         return true;
     }
 

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list