From: Nathan Pratta Teodosio Date: Thu, 25 Aug 2022 16:26:52 +0000 (-0300) Subject: Compatibility with older python3-nautilus X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~134^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5e4e7f580ece6b75089eb9e6ebe800765ed49d7a;p=nextcloud-desktop.git Compatibility with older python3-nautilus --- diff --git a/debian/patches/0005-compat-older-python3-nautilus.patch b/debian/patches/0005-compat-older-python3-nautilus.patch new file mode 100644 index 000000000..d0e64b870 --- /dev/null +++ b/debian/patches/0005-compat-older-python3-nautilus.patch @@ -0,0 +1,19 @@ +Description: Compatibility with older python3-nautilus +Author: Nathan Pratta Teodosio +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): diff --git a/debian/patches/series b/debian/patches/series index 78918e18f..f5b31398d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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