[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:01 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=361fbbd
The following commit has been merged in the master branch:
commit 361fbbd81d3b97fcd3402174929bc9e8cf40bf37
Author: Aleix Pol <aleixpol at kde.org>
Date: Wed Sep 9 23:22:59 2015 +0200
Adapt kdeconnect-cli to changes in core
---
cli/kdeconnect-cli.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp
index 536c754..b5eb9c6 100644
--- a/cli/kdeconnect-cli.cpp
+++ b/cli/kdeconnect-cli.cpp
@@ -64,10 +64,14 @@ int main(int argc, char** argv)
about.processCommandLine(&parser);
if(parser.isSet("l") || parser.isSet("a")) {
+ const QString id = "kdeconnect-cli-"+QString::number(QCoreApplication::applicationPid());
DaemonDbusInterface iface;
bool paired = true, reachable = false;
if (parser.isSet("a")) {
reachable = true;
+ } else {
+ iface.acquireDiscoveryMode(id);
+ QThread::sleep(2);
}
QDBusPendingReply<QStringList> reply = iface.devices(paired, reachable);
reply.waitForFinished();
@@ -95,6 +99,8 @@ int main(int argc, char** argv)
} else if (devices.isEmpty()) {
QTextStream(stderr) << i18n("No devices found") << endl;
}
+
+ iface.releaseDiscoveryMode(id);
} else if(parser.isSet("refresh")) {
QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "forceOnNetworkChange");
QDBusConnection::sessionBus().call(msg);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list