After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696321 - [PATCH] Improve XDnD support so that actors can accept XDnD drops and retrieve information about them
[PATCH] Improve XDnD support so that actors can accept XDnD drops and retriev...
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-03-21 19:21 UTC by Joakim Soderlund
Modified: 2021-07-05 14:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-shell-3.7.92-xdnd-v3.patch (19.13 KB, patch)
2013-03-21 19:21 UTC, Joakim Soderlund
needs-work Details | Review

Description Joakim Soderlund 2013-03-21 19:21:27 UTC
Created attachment 239489 [details] [review]
gnome-shell-3.7.92-xdnd-v3.patch

It is currently not possible for actors to accept XDnD drops. This patch allows for actors to accept XDnD drops and retrieve information about them. This can be used to, for example, accept file drops from Nautilus in extensions.

I have created patches for both GNOME Shell 3.6.2 and 3.7.92 (attached), along with a simple extension demonstrating its usage. The API is almost identical to regular actor drops except for the additional requestData and acceptData methods.

You can find these patches and the extension at the following URL:
http://jocketf.se/files/xdnd/

Mailing list thread:
https://mail.gnome.org/archives/gnome-shell-list/2013-March/msg00016.html

This functionality is required to fix bug 644422.
Comment 1 coreboc 2017-02-10 09:20:52 UTC
4 years later; please has anybody looked into this? it would be very nice if we finally have better drag and drop in gnome. Opening files with a drag to the dock app launchers is really missing from the gnome desktop, for when working with a graphic pen this is a must have. thank you so much!
Comment 2 Joakim Soderlund 2017-02-10 13:49:22 UTC
I tried getting some attention to this after I had made the patch, but there seems to be no interest in something like this. I'm afraid I never even managed to get an opinion about adding more complete drag-and-drop support to GNOME Shell.
Comment 3 Haarek 2017-09-27 13:36:40 UTC
I want to add that this is a wanted functionality to the highly popular GNOME extension Dash to Dock (1), which now also is in use by Ubuntu (2). It would be very nice to see some progress in this area.

(1)
https://github.com/micheleg/dash-to-dock/issues/49#issuecomment-93854316
https://github.com/micheleg/dash-to-dock/issues/173#issuecomment-102660375

(2)
https://didrocks.fr/2017/09/20/ubuntu-gnome-shell-in-artful-day-13/
Comment 4 Florian Müllner 2017-09-29 15:15:33 UTC
Comment on attachment 239489 [details] [review]
gnome-shell-3.7.92-xdnd-v3.patch

If someone wants to pick that up, this needs to be added in MetaDnd now to work in wayland. Marking as needs-work.
Comment 5 Electric Prism 2018-02-13 21:51:35 UTC
Is there a update on this? This particular fix is critical to Touch Devices as it is a blocker in Extensions like Dash to Dock implementing Drag & Drop PNG to Krita via Dock.
Comment 6 Tobias Munk 2018-03-02 13:15:14 UTC
It would be great if this could get some attention, I came here also from Dash-to-dock, as a switcher from OS X, I really miss that.
Comment 7 Florian Müllner 2018-03-02 15:01:25 UTC
This is very low priority upstream, given that:

 - there is no drop target outside the overview,
   which makes DND a lot less useful/common

 - there are plans to drop the dash from the overview,
   which will make DND even less useful/common

I don't think it is a coincidence that all recent comments mention dash-to-dock where DND is a much more natural interaction.

But as we are unlikely to run out of issues that affect stock GNOME users any time soon, your bets are better placed on an interested party (dash-to-dock upstream/downstream or users) providing a patch than on upstream.
Comment 8 Tobias Munk 2018-03-02 15:18:00 UTC
I asked because of this comment in Dash-to-dock:

> There is one mayor stopping thing: https://bugzilla.gnome.org/show_bug.cgi?id=696321. Support has to be provided upstream first. I did try patching gnome-shell with the patch attached to that bug and got a proof of concept, but can't go on without upstream support.

But my knowledge is by far not deep enough to judge about it.
Comment 9 Florian Müllner 2018-03-02 15:24:54 UTC
They are right, this isn't something that can be implemented by an extension. But contributing the feature upstream is a much more promising path than waiting for upstream to run out of higher priority issues (from an upstream POV).
Comment 10 Tobias Munk 2018-03-02 15:37:35 UTC
But what's about the initial patch from Joakim Soderlund, does it need to be updated or is it going into a wrong direction?
Comment 11 Florian Müllner 2018-03-02 15:38:41 UTC
See comment #4.
Comment 12 Dan 2018-05-04 05:39:58 UTC
Many would be really grateful if somebody with skills can work on this! Thanks in advance!
Comment 13 Dan 2019-03-22 01:15:19 UTC
Any update on this? I desperately wait for this so I can upgrade our second computer as the rest of the family can not cope with the "alt+tab" workaround and need the drag&drop function. Thanks in advance for all attention and work!
Comment 14 Dan 2020-08-31 06:27:07 UTC
It would be great if someone can work on this, the 7th anniversary of this bug has past. Drag & Drop has been dearly missed, see these threads: https://askubuntu.com/questions/1030623/how-to-drag-and-drop-files-to-open-application/1031836#1031836 and https://github.com/micheleg/dash-to-dock/issues/49
Thanks in advance for any contribution!
Comment 15 GNOME Infrastructure Team 2021-07-05 14:23:36 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.