diff --git a/kded/plugins/sftp/mounter.cpp b/kded/plugins/sftp/mounter.cpp index 6d2e16fae..9714d4975 100644 --- a/kded/plugins/sftp/mounter.cpp +++ b/kded/plugins/sftp/mounter.cpp @@ -93,7 +93,7 @@ void Mounter::onPakcageReceived(const NetworkPackage& np) return; } - //TODO implement on amdroid side + //TODO implement on android side //if (np.get("id") != m_id) return; m_proc.reset(new KProcess(this)); @@ -116,7 +116,9 @@ void Mounter::onPakcageReceived(const NetworkPackage& np) << "-p" << np.get("port") << "-d" << "-f" - << "-o" << "IdentityFile=" + m_sftp->device()->privateKeyPath(); + << "-o IdentityFile=" + m_sftp->device()->privateKeyPath() + << "-o StrictHostKeyChecking=no" //Do not ask for confirmation because it is not a known host + << "-o UserKnownHostsFile=/dev/null"; //Prevent storing as a known host m_proc->setProgram(program, arguments); diff --git a/kded/plugins/sftp/sftp_config.ui b/kded/plugins/sftp/sftp_config.ui index 9b01fb7f8..8f666988a 100644 --- a/kded/plugins/sftp/sftp_config.ui +++ b/kded/plugins/sftp/sftp_config.ui @@ -186,13 +186,6 @@ - - - - ... - - - diff --git a/kded/plugins/sftp/sftpplugin.cpp b/kded/plugins/sftp/sftpplugin.cpp index 9468e963c..0fe7c19e6 100644 --- a/kded/plugins/sftp/sftpplugin.cpp +++ b/kded/plugins/sftp/sftpplugin.cpp @@ -161,8 +161,9 @@ QString SftpPlugin::mountPoint() void SftpPlugin::onMounted() { + kDebug(kdeconnect_kded()) << QString("Remote filesystem mounted at %1").arg(mountPoint()); knotify(KNotification::Notification - , i18n("Filesystem mounted at %1").arg(mountPoint()) + , i18n("Remote filesystem mounted") , KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop) ); diff --git a/plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.cpp b/plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.cpp index 4c544594f..0ca421834 100644 --- a/plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.cpp +++ b/plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.cpp @@ -76,7 +76,6 @@ void KdeConnectDeclarativePlugin::initializeEngine(QDeclarativeEngine* engine, c engine->rootContext()->setContextProperty("SftpDbusInterfaceFactory" , new ObjectFactory(engine, createSftpInterface)); - engine->rootContext()->setContextProperty("DBusResponseFactory" , new ObjectFactory(engine, createDBusResponse));