Skip to content

Commit

Permalink
Adapt sendto extension for recent nautilus
Browse files Browse the repository at this point in the history
  • Loading branch information
cschramm committed Sep 8, 2023
1 parent c208cac commit eb38dca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Reconfigure DHCP service on local nameserver changes
* Support for systemd-resolved for getting nameservers for NAP clients
* List connected devices in status icon tooltip
* Support for nautilus 43 and later

### Changes

Expand Down
6 changes: 4 additions & 2 deletions sendto/blueman_sendto.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class BluemanSendtoExtension(GObject.GObject, @FILEMANAGER@.MenuProvider):
if not launched:
print("*** Failed to launch program ***")

def get_file_items(self, window, files):
def get_file_items(self, *args):
files = args[-1]

if len(files) == 0:
return

Expand All @@ -53,5 +55,5 @@ class BluemanSendtoExtension(GObject.GObject, @FILEMANAGER@.MenuProvider):
return [item]

# stub to avoid potential warning (nautilus throws fit)
def get_background_items(self, window, file):
def get_background_items(self, *args):
return []

0 comments on commit eb38dca

Please sign in to comment.