OSDN Git Service
(root)
/
kde
/
kde-workspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c8221
)
kioslave: redirect sftp-ssh service URLs to sftp slave from network slave
author
Ivailo Monev
<xakepa10@gmail.com>
Fri, 6 May 2022 01:35:54 +0000
(
01:35
+0000)
committer
Ivailo Monev
<xakepa10@gmail.com>
Fri, 6 May 2022 01:35:54 +0000
(
01:35
+0000)
kioslave/network/ioslave/networkslave.cpp
patch
|
blob
|
history
diff --git
a/kioslave/network/ioslave/networkslave.cpp
b/kioslave/network/ioslave/networkslave.cpp
index
690233f
..
cbabd1b
100644
(file)
--- a/
kioslave/network/ioslave/networkslave.cpp
+++ b/
kioslave/network/ioslave/networkslave.cpp
@@
-34,6
+34,10
@@
static QString urlForService(const KDNSSDService &kdnssdservice)
QString result = kdnssdservice.url;
result = result.replace(QLatin1String("rfb://"), QLatin1String("vnc://"));
return result;
+ } else if (kdnssdservice.url.startsWith(QLatin1String("sftp-ssh://"))) {
+ QString result = kdnssdservice.url;
+ result = result.replace(QLatin1String("sftp-ssh://"), QLatin1String("sftp://"));
+ return result;
}
return kdnssdservice.url;
}