Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
9b6d3a7c
Commit
9b6d3a7c
authored
Aug 17, 2022
by
Erich Eickmeyer
Browse files
nautilus: Update for compatibility with Nautilus 43
parent
abd088a3
Pipeline
#219590
passed with stage
in 6 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nautilus-extension/kdeconnect-share.py
View file @
9b6d3a7c
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment