Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a drag and drop portal #1143

Closed
Kekun opened this issue Nov 3, 2017 · 3 comments
Closed

Add a drag and drop portal #1143

Kekun opened this issue Nov 3, 2017 · 3 comments

Comments

@Kekun
Copy link

Kekun commented Nov 3, 2017

I tried to drag and drop a file into Geary to attach it to a mail, but it didn't work.

Dragging and dropping is an explicit request from the user to let the application open the file, having a portal to handle that would be great.

@matthiasclasen
Copy link
Collaborator

dnd is typically handled as part of the display protocol - for wayland, it is part of the wayland protocol, for X11, it is done via selections and client messages (xdnd). Thus the dnd transfer itself works fine. Whats missing here is a bit of special handling for the case where the data that is transferred consists of file system paths - the application inside the sandbox generally does not have the same view of the filesystem as the outside world, so somebody (most likely, the compositor), needs to translate the paths on the way into the sandbox, and possible export the files in the document portal to make them visible in the sandbox.

@TingPing
Copy link
Member

TingPing commented Nov 9, 2017

See also: flatpak/xdg-desktop-portal#99

@mwleeds
Copy link
Collaborator

mwleeds commented Sep 9, 2018

I don't think we need this issue open both here and in xdg-desktop-portal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants