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 151598 - File DnD on panel launchers doesn't work
File DnD on panel launchers doesn't work
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: panel
2.6.x
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
ghop[2007-18]
Depends on:
Blocks:
 
 
Reported: 2004-09-01 12:46 UTC by Daniel Poersch
Modified: 2020-11-06 20:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch for bug #151598 (738 bytes, patch)
2007-11-29 16:13 UTC, Denis Washington
rejected Details | Review

Description Daniel Poersch 2004-09-01 12:46:29 UTC
Please describe the problem:
If I drop (e.g.) some text files from my file manager (nautilus or rox) on a
panel launcher (scite), the application starts up, but is ignoring the dropped
files.

Steps to reproduce:
1. Open a nautilus window
2. drop a/some files on a panel launcher



Actual results:
The application connected to the launcher starts up, but without opening the files.

Expected results:
The specific application should open the dropped files.

Does this happen every time?
1. Open a nautilus window
2. drop a/some files on a panel launcher



Other information:
Comment 1 Vincent Untz 2004-09-01 12:59:25 UTC
How did you create the launcher?
You should have %U somewhere in the command line to make this work. For example,
add a gedit launcher by copying it from the menu and then edit it.
Comment 2 Daniel Poersch 2004-09-01 14:50:11 UTC
Yes, you are right, most of my .desktop's files in /usr/share/applications don't
have any %U or %F. So it's up to blame the package maintainers or distributors
(gentoo in my case).

But it is still strange, because it works with the same launchers on the
Desktop, so maybe the behavior should be changed:

if (<exec-string> contains %[UF]) {
    "old-method"
else
    <exec-string> "$@"

Otherwise you would have to document -- in a clear way, while generating the
launcher -- how to make it right.
Comment 3 Vincent Untz 2004-09-02 08:52:26 UTC
Need to look how nautilus handles that and have some consistency. I'm not sure
it's good to do this this way.
Reopening the bug.
Comment 4 Daniel Poersch 2004-09-02 09:06:17 UTC
Yes, consistency with nautilus would be good. This would also mean that dropping
files on a "directory launcher" copies/moves them to that directory.
Comment 5 Christian Neumair 2005-02-12 12:36:16 UTC
Vincent: What were the results of your investigation? Would be nice to have this
sorted out.
Comment 6 Vincent Untz 2005-02-12 12:43:42 UTC
Christian: I didn't have time to look at what nautilus is doing exactly, so no
results.
Comment 7 Baris Cicek 2005-03-29 06:31:39 UTC
From what I see, nautilus behaves as exactly told in #2. If there's %[UF] it
substitutes the %[UF] with dragged file, if there's not %[UF] it just behaves as
if there's %[UF] at the end of launchers command line. 
Comment 8 Cosimo Cecchi 2007-07-18 20:33:57 UTC
I can't reproduce this anymore in 2.19.5 so i guess the bug should be closed.
Comment 9 Vincent Untz 2007-07-22 22:33:59 UTC
Cosimo: it probably depends on which launcher you drop this. Or did the nautilus behavior change?
Comment 10 Cosimo Cecchi 2007-07-22 23:00:34 UTC
Vincent: you're right. I overlooked the fact that i tried to reproduce this with launchers that had always %[UF] in the command line (on my Gentoo, every launcher i saw had either %U or %F if it was supposed to open files), so I was getting the same behaviour of both panel and nautilus.
I think that the right behaviour is the panel one, but i must admit that it might be awful for the user if the mantainer/distributor of some application did not made the launcher properly and you could not use DnD, so we might implement this here also for consistency.
Comment 11 Denis Washington 2007-11-29 16:13:58 UTC
Created attachment 99844 [details] [review]
Patch for bug #151598

Appends %U to command lines without %U or %F.
Comment 12 Denis Washington 2007-12-31 16:34:56 UTC
Is the patch OK?
Comment 13 Vincent Untz 2008-02-11 14:28:20 UTC
I'm 99% sure that the patch will cause a broken behavior with some of the .desktop files that exist out there. We can't assume that the app will support %U if there's no %U.
Comment 14 André Klapper 2020-11-06 20:22:15 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.