Files: Drag and drop images from Chromium browser to files

Created on 11 Nov 2018  路  9Comments  路  Source: elementary/files

What I really miss is the possibility to drag images from a web browser to Files. Nautilus and other file managers do support it as well.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Medium Confirmed

Most helpful comment

I'm curious, what are the technical/design reasons that this sort of thing does not Just Work(tm) system-wide?

All 9 comments

Good one.
I think @Philip-Scott implemented this recently in Spice Up version 1.7.0.
I think this are the relevant PR's:
https://github.com/Philip-Scott/Spice-up/pull/233
https://github.com/Philip-Scott/Spice-up/pull/239

I'm curious, what are the technical/design reasons that this sort of thing does not Just Work(tm) system-wide?

In my perspective, the title of the issue shoud be changed in order to also include drag images from a web browser directly to Photos.

THIS! is needed.

@Venturub Or from any app to any app, where it makes sense? This is the nature of the question above your comment. I'm believe that @dackdel (like myself) is coming from Mac OS/Mac OS X/macOS, and wondering why this is not working intuitively. Is it GTK for example that is not designed with this sort of behavior in mind, or what?

In general things "just work" when they are handled by a single system level process. Otherwise all relevant process have to implement an agreed protocol. In this case, I guess that Files is not implementing the required protocol in its DnD handler. I'll look into it.

The linked PRs seem to be about cut/paste rather than drag n drop, which is handled differently. But both should be made to work.

It seems Files does implement XDndDirectSave protocol (it works with e.g. Firefox), but chromium-browser does not (properly) and Files does not fallback to getting raw data from the source.

Correction - XDndDirectSave does not work in master for Firefox - I was using a modified version. I'll submit a PR that fixes this aspect of the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodrigoaraujolima92 picture rodrigoaraujolima92  路  5Comments

jnnkB picture jnnkB  路  4Comments

micahilbery picture micahilbery  路  5Comments

CodingSpiderFox picture CodingSpiderFox  路  5Comments

Djaler picture Djaler  路  5Comments