Commit 9b6d3a7c authored by Erich Eickmeyer's avatar Erich Eickmeyer
Browse files

nautilus: Update for compatibility with Nautilus 43

parent abd088a3
Pipeline #219590 passed with stage
in 6 minutes and 32 seconds
......@@ -84,7 +84,10 @@ class KdeConnectShareExtension(GObject.GObject, Nautilus.MenuProvider):
variant = GLib.Variant('(s)', (file.get_uri(),))
device_proxy.call_sync('shareUrl', variant, 0, -1, None)
def get_file_items(self, window, files):
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]
#We can only send regular files
for uri in files:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment