From c456a050b68d394f5fd2596cd7f8c0deba6fab122f6808cede164cbac565f610 Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Sat, 22 Oct 2022 16:03:47 +0000 Subject: [PATCH] Accepting request 1030537 from home:polslinux:branches:network - Add fix_nautilus_ext.patch: make the extension working again on Nautilus 43. This patch also support previous Nautilus versions. OBS-URL: https://build.opensuse.org/request/show/1030537 OBS-URL: https://build.opensuse.org/package/show/network/nextcloud-desktop?expand=0&rev=77 --- fix_nautilus_ext.patch | 29 +++++++++++++++++++++++++++++ nextcloud-desktop.changes | 6 ++++++ nextcloud-desktop.spec | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 fix_nautilus_ext.patch diff --git a/fix_nautilus_ext.patch b/fix_nautilus_ext.patch new file mode 100644 index 0000000..34e9419 --- /dev/null +++ b/fix_nautilus_ext.patch @@ -0,0 +1,29 @@ +From 011d4b89c8bbcc6e1320b06c700c608819eaf622 Mon Sep 17 00:00:00 2001 +From: Paolo Stivanin +Date: Sat, 22 Oct 2022 16:31:24 +0200 +Subject: [PATCH] Add support for GNOME 43 (fix #5041) + +Signed-off-by: Paolo Stivanin +--- + shell_integration/nautilus/syncstate.py | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py +index c4dacb5b0f5..4c77fda4c9d 100644 +--- a/shell_integration/nautilus/syncstate.py ++++ b/shell_integration/nautilus/syncstate.py +@@ -200,9 +200,12 @@ def check_registered_paths(self, filename): + break + return (topLevelFolder, internalFile) + +- def get_file_items(self, window, files): +- # Show the menu extension to share a file or folder ++ def get_file_items(self, *args): ++ # `args` will be `[files: List[Nautilus.FileInfo]]` in Nautilus 4.0 API, ++ # and `[window: Gtk.Widget, files: List[Nautilus.FileInfo]]` in Nautilus 3.0 API. ++ files = args[-1] + ++ # Show the menu extension to share a file or folder + # Get usable file paths from the uris + all_internal_files = True + for i, file_uri in enumerate(files): diff --git a/nextcloud-desktop.changes b/nextcloud-desktop.changes index 7a5bcbd..ae626f7 100644 --- a/nextcloud-desktop.changes +++ b/nextcloud-desktop.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 22 14:36:06 UTC 2022 - Paolo Stivanin + +- Add fix_nautilus_ext.patch: make the extension working again on Nautilus 43. + This patch also support previous Nautilus versions. + ------------------------------------------------------------------- Wed Oct 19 10:10:54 UTC 2022 - ecsos diff --git a/nextcloud-desktop.spec b/nextcloud-desktop.spec index 2c6a2f4..7fb47f9 100644 --- a/nextcloud-desktop.spec +++ b/nextcloud-desktop.spec @@ -29,6 +29,8 @@ Source: https://github.com/nextcloud/desktop/archive/v%{version}/%{name} Source1: sysctl-sync-inotify.conf # PATCH-FIX-OPENSUSE nextcloud-desktop-remove-datetime.patch sor.alexei@meowr.ru -- Remove __TIME__ and __DATE__. Patch1: nextcloud-desktop-remove-datetime.patch +# PATCH-FIX-UPSTREAM https://github.com/nextcloud/desktop/pull/5084 +Patch2: fix_nautilus_ext.patch BuildRequires: AppStream BuildRequires: cmake >= 3.2 BuildRequires: extra-cmake-modules