[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:24 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=5b91610
The following commit has been merged in the master branch:
commit 5b91610e3fa6b2f5a89f4f00020762040b54907a
Author: Albert Vaca <albertvaka at gmail.com>
Date: Fri Feb 14 20:12:40 2014 +0100
Added a commented out snippet of code
---
kded/plugins/sftp/mounter.cpp | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/kded/plugins/sftp/mounter.cpp b/kded/plugins/sftp/mounter.cpp
index dae3c57..294f193 100644
--- a/kded/plugins/sftp/mounter.cpp
+++ b/kded/plugins/sftp/mounter.cpp
@@ -95,6 +95,21 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
//TODO implement on android side
//if (np.get<int>("id") != m_id) return;
+
+ //This is the previous code, to access sftp server using KIO. Now we are
+ //using the external binary sshfs, and accessing it as a local filesystem.
+ /*
+ * KUrl url;
+ * url.setProtocol("sftp");
+ * url.setHost(np.get<QString>("ip"));
+ * url.setPort(np.get<QString>("port").toInt());
+ * url.setUser(np.get<QString>("user"));
+ * url.setPass(np.get<QString>("password"));
+ * url.setPath(np.get<QString>("path"));
+ * new KRun(url, 0);
+ * Q_EMIT mounted();
+ */
+
m_proc.reset(new KProcess(this));
m_proc->setOutputChannelMode(KProcess::MergedChannels);
@@ -104,7 +119,7 @@ void Mounter::onPakcageReceived(const NetworkPackage& np)
const QString mpoint = m_sftp->mountPoint();
QDir().mkpath(mpoint);
-
+
const QString program = "sshfs";
const QStringList arguments = QStringList()
<< QString("%1@%2:%3")
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list