Compatibility with older python3-nautilus
authorNathan Pratta Teodosio <nathan.teodosio@canonical.com>
Thu, 25 Aug 2022 16:26:52 +0000 (13:26 -0300)
committerNathan Pratta Teodosio <nathan.teodosio@canonical.com>
Fri, 26 Aug 2022 18:08:51 +0000 (15:08 -0300)
debian/patches/0005-compat-older-python3-nautilus.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0005-compat-older-python3-nautilus.patch b/debian/patches/0005-compat-older-python3-nautilus.patch
new file mode 100644 (file)
index 0000000..d0e64b8
--- /dev/null
@@ -0,0 +1,19 @@
+Description: Compatibility with older python3-nautilus
+Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
+Forwarded: https://github.com/nextcloud/desktop/pull/4870
+Last-Update: 2022-08-25
+
+--- nextcloud-desktop-3.5.4.orig/shell_integration/nautilus/syncstate.py
++++ nextcloud-desktop-3.5.4/shell_integration/nautilus/syncstate.py
+@@ -200,9 +200,10 @@ class MenuExtension_ownCloud(GObject.GOb
+                 break
+         return (topLevelFolder, internalFile)
+-    def get_file_items(self, window, files):
++    def get_file_items(self, *args):
+         # Show the menu extension to share a file or folder
++        files = args[-1]
+         # Get usable file paths from the uris
+         all_internal_files = True
+         for i, file_uri in enumerate(files):
index 78918e18f47e39b1966c8ca86a1993b428439dae..f5b31398d8c57a2a3707b79e49cd266a3c72aa94 100644 (file)
@@ -2,3 +2,4 @@
 0002-use_system_buildflags.patch
 0003-Use-release-version-for-Debian.patch
 0004-Revert-8fb673457b42-Add-a-button-to-create-a-debug-a.patch
+0005-compat-older-python3-nautilus.patch