Accepting request 834470 from KDE:Frameworks5
KDE Frameworks 5.74.0 OBS-URL: https://build.opensuse.org/request/show/834470 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kio?expand=0&rev=99
This commit is contained in:
commit
50728152db
@ -0,0 +1,41 @@
|
||||
From bd04dfb4d9dbf2d29c5a5c18bfce15f926996e5e Mon Sep 17 00:00:00 2001
|
||||
From: David Faure <faure@kde.org>
|
||||
Date: Fri, 11 Sep 2020 18:26:47 +0200
|
||||
Subject: [PATCH 1/2] Remove old kio_fonts hack in KCoreDirLister, hostname was
|
||||
stripped incorrectly
|
||||
|
||||
https://bugs.kde.org/show_bug.cgi?id=160057 worked around the fact that
|
||||
kio_fonts was creating URLs like fonts://System/, and yet there's no
|
||||
hostname during directory listing afterwards.
|
||||
|
||||
Nowadays:
|
||||
1) this hack isn't needed anymore, kio_fonts does fonts:/System/
|
||||
2) removing it actually fixes navigating from `dolphin fonts:/`
|
||||
---
|
||||
src/core/kcoredirlister.cpp | 10 ----------
|
||||
1 file changed, 10 deletions(-)
|
||||
|
||||
diff --git a/src/core/kcoredirlister.cpp b/src/core/kcoredirlister.cpp
|
||||
index e9a756a4..8a548949 100644
|
||||
--- a/src/core/kcoredirlister.cpp
|
||||
+++ b/src/core/kcoredirlister.cpp
|
||||
@@ -90,16 +90,6 @@ bool KCoreDirListerCache::listDir(KCoreDirLister *lister, const QUrl &_u,
|
||||
QUrl _url(_u);
|
||||
_url.setPath(QDir::cleanPath(_url.path())); // kill consecutive slashes
|
||||
|
||||
- if (!_url.host().isEmpty() && KProtocolInfo::protocolClass(_url.scheme()) == QLatin1String(":local")
|
||||
- && _url.scheme() != QLatin1String("file")) {
|
||||
- // ":local" protocols ignore the hostname, so strip it out preventively - #160057
|
||||
- // kio_file is special cased since it does honor the hostname (by redirecting to e.g. smb)
|
||||
- _url.setHost(QString());
|
||||
- if (_keep == false) {
|
||||
- emit lister->redirection(_url);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
// like this we don't have to worry about trailing slashes any further
|
||||
_url = _url.adjusted(QUrl::StripTrailingSlash);
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,49 @@
|
||||
From 37440b39539d32e6e2d8ba840ae670348554d0d8 Mon Sep 17 00:00:00 2001
|
||||
From: Ahmad Samir <a.samirh78@gmail.com>
|
||||
Date: Sat, 12 Sep 2020 20:45:44 +0200
|
||||
Subject: [PATCH 2/2] KUrlCompletion: accommodate ":local" protocols that use
|
||||
hostname in url
|
||||
|
||||
An example of that is kdeconnect://, offering completions for it is
|
||||
redundant since it uses the hostname part of the url as the deviceId (a
|
||||
sequence of letters and numbers that's not easy to remember), so can't use
|
||||
that, and the UDS_NAME is the pretty name (e.g. SM-J500H) users see listed in
|
||||
kdeconnect:// but kdeconnect://SM-J500H doesn't work. Also because the code in
|
||||
KUrlCompletion::_k_slotEntries() is expecting a list of files/dirs to offer
|
||||
as completions, and not hostnames (_k_slotEntries uses addPathtoUrl helper
|
||||
method), no useful completions are feasible.
|
||||
|
||||
Instead if the "filename" part of the url is empty we just skip it.
|
||||
|
||||
Note that this prevents the code from hitting an assert in addPathToUrl
|
||||
(after applying https://invent.kde.org/frameworks/kio/-/merge_requests/127
|
||||
which is needed to make accessing devices using the kdeconnect ioslave
|
||||
actually work at all).
|
||||
---
|
||||
src/widgets/kurlcompletion.cpp | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/widgets/kurlcompletion.cpp b/src/widgets/kurlcompletion.cpp
|
||||
index 88bbaace..849a0f38 100644
|
||||
--- a/src/widgets/kurlcompletion.cpp
|
||||
+++ b/src/widgets/kurlcompletion.cpp
|
||||
@@ -1213,9 +1213,14 @@ void KUrlCompletionPrivate::_k_slotEntries(KIO::Job *, const KIO::UDSEntryList &
|
||||
entry_name = entry.stringValue(KIO::UDSEntry::UDS_NAME);
|
||||
}
|
||||
|
||||
- //qDebug() << "name:" << name;
|
||||
+ // This can happen with kdeconnect://deviceId as a completion for kdeconnect:/,
|
||||
+ // there's no fileName [and the UDS_NAME is unrelated, can't use that].
|
||||
+ // This code doesn't support completing hostnames anyway (see addPathToUrl below).
|
||||
+ if (entry_name.isEmpty()) {
|
||||
+ continue;
|
||||
+ }
|
||||
|
||||
- if ((!entry_name.isEmpty() && entry_name.at(0) == QLatin1Char('.')) &&
|
||||
+ if (entry_name.at(0) == QLatin1Char('.') &&
|
||||
(list_urls_no_hidden ||
|
||||
entry_name.length() == 1 ||
|
||||
(entry_name.length() == 2 && entry_name.at(1) == QLatin1Char('.')))) {
|
||||
--
|
||||
2.25.1
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:05da159e6cf5ef9aa4dd7ede86ce28a5581624a1b3f0b4718c5b7e30c4aa2a66
|
||||
size 3257112
|
@ -1,11 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAABCgAdFiEEU+a0e0XOo+DVt0V3WNDuZIpIs7sFAl8lzu0ACgkQWNDuZIpI
|
||||
s7szdwf/ab0bKj8ldyiXQ9zB+dAe8VC4zwfYwI/UIJNmC5LxN4BSShNFWxulhlr8
|
||||
bVE3k2mpvUcM3euj7TEuJ+KbDItZxIgvCrcPqRfsqf9ZEA/96GxV+4U5cVUsBOh/
|
||||
OdlXtRreImaBCaqFEoYTQhB/TtfavxpOObSPTb6bMb1roJBJjEtWCRVVTDOXnXhB
|
||||
DJl4VMBn3LpFWElNwWkRXYOOg+t+Q8b2nU57QNervgf+pLGb/+/C1AcI9MVhmdnX
|
||||
udCHXCO78d3Kyzgd8uq/cZuLEm9eVgwUxGM9L2+SnBe2JMtVJU+ek7cWTMQ0KE9+
|
||||
pQ7JkhBCgRei/EMk2Cw7r57IpDteKw==
|
||||
=ut1a
|
||||
-----END PGP SIGNATURE-----
|
3
kio-5.74.0.tar.xz
Normal file
3
kio-5.74.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e567872d42c92dde79189ad0ca32913dbc0ae09331715c5d33052223e1d2fdbf
|
||||
size 3281128
|
11
kio-5.74.0.tar.xz.sig
Normal file
11
kio-5.74.0.tar.xz.sig
Normal file
@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAABCgAdFiEEU+a0e0XOo+DVt0V3WNDuZIpIs7sFAl9bTdYACgkQWNDuZIpI
|
||||
s7vkSgf+K19TrI2ankEZg+vOItYM6t6vNDBaQ6CX7UNQ9cCGPmP+dqft4Wn4GjvS
|
||||
mMeocpoPLBPADbFuWmQUxKjPdoHXvLvAikt7KIuMfYy+jHiSBF8LH7n6ye9zi6wn
|
||||
l6rxADZmzOhQVNrf1tNXSPJhxUDiP2sFeHXcn4uN/nXrn7pNo7/mWATWqnOix+V4
|
||||
ZbkUoIYKp6YFk//HefonstlAQO9W6auoeWdoye0X6RsE82Om8lmlwgdkgbKcRKj3
|
||||
mnia+QGiH2YNzBqMQ6x35Vtd8AelJHe3lz5YbrWyDujS4wJcimXL4BJ9EafaQoqi
|
||||
ZJz3cT2mgXFfqt4KKprpowIwB6v05A==
|
||||
=ypdi
|
||||
-----END PGP SIGNATURE-----
|
21
kio.changes
21
kio.changes
@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 13 09:41:06 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Add patches to fix browsing kdeconnect://:
|
||||
* 0001-Remove-old-kio_fonts-hack-in-KCoreDirLister-hostname.patch
|
||||
* 0002-KUrlCompletion-accommodate-local-protocols-that-use-.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 6 12:49:33 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Update to 5.74.0
|
||||
* New feature release
|
||||
* For more details please see:
|
||||
* https://kde.org/announcements/kde-frameworks-5.74.0
|
||||
- Too many changes since 5.73.0, only listing bugfixes:
|
||||
* Revert "[KUrlCompletion] Don't append / to completed folders" (kde#425387)
|
||||
* Update help text for editing the app command in a .desktop entry to comply with current spec. (kde#425145)
|
||||
* [filewidgets] Fix KUrlNavigatorButton padding on breadcrumb (kde#425570)
|
||||
* KFileWidget: reparse config to grab dirs added by other instances of the app (kde#403524)
|
||||
* Avoid systemd launched applications from closing forked children (kde#425201)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 2 07:13:31 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
11
kio.spec
11
kio.spec
@ -16,14 +16,14 @@
|
||||
#
|
||||
|
||||
|
||||
%define _tar_path 5.73
|
||||
%define _tar_path 5.74
|
||||
# Full KF5 version (e.g. 5.33.0)
|
||||
%{!?_kf5_version: %global _kf5_version %{version}}
|
||||
# Last major and minor KF5 version (e.g. 5.33)
|
||||
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
||||
%bcond_without lang
|
||||
Name: kio
|
||||
Version: 5.73.0
|
||||
Version: 5.74.0
|
||||
Release: 0
|
||||
Summary: Network transparent access to files and data
|
||||
License: LGPL-2.1-or-later
|
||||
@ -37,6 +37,9 @@ Source2: frameworks.keyring
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE kio_help-fallback-to-kde4-docs.patch -- allow kio_help to see into kde4 documentation, needed especially for khelpcenter5
|
||||
Patch0: kio_help-fallback-to-kde4-docs.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: 0001-Remove-old-kio_fonts-hack-in-KCoreDirLister-hostname.patch
|
||||
Patch2: 0002-KUrlCompletion-accommodate-local-protocols-that-use-.patch
|
||||
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: kf5-filesystem
|
||||
@ -159,7 +162,7 @@ Development files.
|
||||
|
||||
%files core
|
||||
%doc README*
|
||||
%license COPYING*
|
||||
%license LICENSES/*
|
||||
%dir %{_kf5_plugindir}/kf5
|
||||
%dir %{_kf5_plugindir}/kf5/kio
|
||||
%dir %{_kf5_plugindir}/kf5/kiod
|
||||
@ -199,7 +202,7 @@ Development files.
|
||||
|
||||
%files
|
||||
%doc README*
|
||||
%license COPYING*
|
||||
%license LICENSES/*
|
||||
%dir %{_kf5_htmldir}
|
||||
%dir %{_kf5_htmldir}/en
|
||||
%dir %{_kf5_plugindir}/kf5/kded
|
||||
|
Loading…
Reference in New Issue
Block a user