https://bugs.kde.org/show_bug.cgi?id=505771

--- Comment #7 from Harald Sitter <[email protected]> ---
We've had a bit of a chat and we think we have a solution that can work 

some references: 
paste receiver
https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/plugins/platforms/wayland/qwaylanddataoffer.cpp?ref_type=heads#L151
paste sender
https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/plugins/platforms/wayland/qwaylanddatasource.cpp?ref_type=heads

On the sender side we'd offer an application/vnd.portal.filetransfer whenever a
uri is present.

On the receiver side we'd always prefer the application/vnd.portal.filetransfer
when inside a sandbox. And request data for it.

On the sender we receive the data request and run portalization logic for the
uri, then give the transferid as reply to the data request.

On the receiver side we do the portal-transfer dance to get access to the uri
inside the portal.

Caveat is that this only considers wayland native for now. We'll have to see
what we do with x11.
May well be that this also opens an avenue for Qt native drag and drop support.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to