Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-10-29 16:44:21 +0300
committerGitHub <noreply@github.com>2022-10-29 16:44:21 +0300
commit6f67c2ec881f4e35f5338b5d196bc2d7ff89e1d5 (patch)
treef67b26d3abe07ed1ede53f3147d0ebc3732740c3
parentbbfe9ca411bcd8ecd2028dc876fc071155bf6ce9 (diff)
parent2ba08206af799acba76fd93fed50cbdba798d498 (diff)
Merge pull request #5105 from nteodosio/master
Fix compatibility with newer python3-nautilus
-rw-r--r--shell_integration/nautilus/syncstate.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index c4dacb5b0..f5116d183 100644
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -200,9 +200,13 @@ class MenuExtension_ownCloud(GObject.GObject, Nautilus.MenuProvider):
break
return (topLevelFolder, internalFile)
- def get_file_items(self, window, files):
+ # The get_file_items method of Nautilus.MenuProvider no longer takes
+ # the window argument. To keep supporting older versions of Nautilus,
+ # we can use variadic arguments.
+ 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):