Commit 245ee180 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Fixed "unknown host" problem in sftp plugin

parent 6b94e7fa
......@@ -93,7 +93,7 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
return;
}
//TODO implement on amdroid side
//TODO implement on android side
//if (np.get<int>("id") != m_id) return;
m_proc.reset(new KProcess(this));
......@@ -116,7 +116,9 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
<< "-p" << np.get<QString>("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);
......
......@@ -186,13 +186,6 @@
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QToolButton" name="toolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......
......@@ -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)
);
......
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment