From f934f4160e58bb58e4492239d239e5818bc6774e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 18 2021 06:50:22 +0000 Subject: import nautilus-3.28.1-15.el8 --- diff --git a/SOURCES/nautilus-file.c-Fix-open-writable-file-in-recent-tab.patch b/SOURCES/nautilus-file.c-Fix-open-writable-file-in-recent-tab.patch new file mode 100644 index 0000000..f1467c7 --- /dev/null +++ b/SOURCES/nautilus-file.c-Fix-open-writable-file-in-recent-tab.patch @@ -0,0 +1,33 @@ +From 49718175b75c8ff89a219954f0abd6067e4a39f6 Mon Sep 17 00:00:00 2001 +From: Wong Heung Sang +Date: Mon, 7 May 2018 00:10:15 +0800 +Subject: [PATCH] nautilus-file.c: Fix open writable file in recent tab + +File opened in recent tab now is read-only +when it is writable. + +Replace nautilus_file_info_get_uri () +with nautilus_file_info_get_activation_uri () +fix the problem. + +https://gitlab.gnome.org/GNOME/nautilus/issues/378 +--- + src/nautilus-file.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nautilus-file.c b/src/nautilus-file.c +index 0ec5e3848..d3ba8c841 100644 +--- a/src/nautilus-file.c ++++ b/src/nautilus-file.c +@@ -4482,7 +4482,7 @@ nautilus_file_get_activation_uri (NautilusFile *file) + { + g_return_val_if_fail (NAUTILUS_IS_FILE (file), NULL); + +- return nautilus_file_info_get_uri (NAUTILUS_FILE_INFO (file)); ++ return nautilus_file_info_get_activation_uri (NAUTILUS_FILE_INFO (file)); + } + + GFile * +-- +2.29.2 + diff --git a/SPECS/nautilus.spec b/SPECS/nautilus.spec index c3fbc88..1eece52 100644 --- a/SPECS/nautilus.spec +++ b/SPECS/nautilus.spec @@ -8,7 +8,7 @@ Name: nautilus Version: 3.28.1 -Release: 14%{?dist} +Release: 15%{?dist} Summary: File manager for GNOME License: GPLv3+ @@ -66,6 +66,9 @@ Patch31: nautilus-mime-actions.c-No-Application-Installed-dia.patch Patch32: search-engine-tracker-Fix-broken-query-under-some-lo.patch Patch33: search-engine-tracker-Expand-macro-as-string.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1906499 +Patch34: nautilus-file.c-Fix-open-writable-file-in-recent-tab.patch + BuildRequires: gtk-doc BuildRequires: meson BuildRequires: gcc @@ -178,6 +181,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop %{_datadir}/gir-1.0/*.gir %changelog +* Wed Jan 6 2021 Ondrej Holy - 3.28.1-15 +- Fix activation_uri handling to prevent invalid bookmarks (rhbz#1906499) + * Fri Jun 19 2020 Ondrej Holy - 3.28.1-14 - Fix broken tracker query under certain locales (rhbz#1847061)