From fc45b64362f8e335ac0ee2b1a1b7b87d27823127 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 5 Oct 2013 15:55:25 +0200 Subject: [PATCH] Added check for RSA support in QCA. It was crashing KDED for some users when not present. --- kded/daemon.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kded/daemon.cpp b/kded/daemon.cpp index 5bf33da98..815283a5b 100644 --- a/kded/daemon.cpp +++ b/kded/daemon.cpp @@ -23,6 +23,7 @@ #include "networkpackage.h" #include "backends/lan/lanlinkprovider.h" +#include "backends/online/onlinelinkprovider.h" #include "backends/loopback/loopbacklinkprovider.h" #include @@ -51,6 +52,14 @@ Daemon::Daemon(QObject *parent, const QList&) qDebug() << "My id:" << uuid; } + //qDebug() << "QCA supported capabilities:" << QCA::supportedFeatures().join(","); + if(!QCA::isSupported("rsa")) { + //TODO: Maybe display this in a more visible way? + qWarning() << "Error: KDE Connect could not find support for RSA in your QCA installation, if your distribution provides" + << "separate packages for QCA-ossl and QCA-gnupg plugins, make sure you have them installed and try again"; + return; + } + if (!config->group("myself").hasKey("privateKey") || !config->group("myself").hasKey("publicKey")) { //http://delta.affinix.com/docs/qca/rsatest_8cpp-example.html