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
This commit is contained in:
Eric Schirra 2022-10-22 16:03:47 +00:00 committed by Git OBS Bridge
parent b8e1888ca2
commit c456a050b6
3 changed files with 37 additions and 0 deletions

29
fix_nautilus_ext.patch Normal file
View File

@ -0,0 +1,29 @@
From 011d4b89c8bbcc6e1320b06c700c608819eaf622 Mon Sep 17 00:00:00 2001
From: Paolo Stivanin <info@paolostivanin.com>
Date: Sat, 22 Oct 2022 16:31:24 +0200
Subject: [PATCH] Add support for GNOME 43 (fix #5041)
Signed-off-by: Paolo Stivanin <info@paolostivanin.com>
---
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):

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 22 14:36:06 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
- 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 <ecsos@opensuse.org>

View File

@ -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