Fixed "unknown host" problem in sftp plugin
This commit is contained in:
parent
6b94e7faf8
commit
245ee18089
4 changed files with 6 additions and 11 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue