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 75470 - Dropping files on Launchers does not launch app with that file.
Dropping files on Launchers does not launch app with that file.
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
1.5.x
Other Solaris
: High major
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 73889 99329 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-03-19 17:51 UTC by keelin.boyle
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
Patch for launching apps with the file dropped on it. (4.45 KB, patch)
2002-03-25 15:45 UTC, Arvind S N
none Details | Review

Description keelin.boyle 2002-03-19 17:51:58 UTC
To Reproduce:

1) Add the gedit launcher to the panel.
2) Drag a text file from filemgr to gedit launcher and drop.

Expected Result: gedit application opens and displays the contents of the
text file.

Actual result: gedit opens with default settings, and does not display text
file.
Comment 1 Luis Villa 2002-03-19 19:55:05 UTC
Has this ever been the case in the panel? I'm very tempted to mark
this 'enhancement' but maybe there is some functionality in panel I've
been missing all these years...
Comment 2 Luis Villa 2002-03-19 23:03:47 UTC
FWIW, if that was the case, please apply the 1.x-parity keyword to the
bug.
Comment 3 keelin.boyle 2002-03-20 09:53:45 UTC
Just checked and yeah it was panel functionality in 1.4 so is a
regression in 2.0, applying the 1.x-parity keyword. 
Comment 4 Mark McLoughlin 2002-03-20 10:05:39 UTC
Madness, I never knew about it either :-)
Comment 5 Mark McLoughlin 2002-03-20 11:30:28 UTC
*** Bug 73889 has been marked as a duplicate of this bug. ***
Comment 6 Arvind S N 2002-03-21 12:27:50 UTC
There is change in the way it is implemented in GNOME2.0
If you set the command in the launcher properties with %F option 
in the command line, it works fine. I think all the desktop files for 
applications must be changed to reflect the code changes.
The options available are %F,%U,%D,%N.
Please refer to append_app_arg() in 
gnome-desktop/libgnome-desktop/gnome-desktop-item.c

Comment 7 Arvind S N 2002-03-25 15:45:03 UTC
Created attachment 7366 [details] [review]
Patch for launching apps with the file dropped on it.
Comment 8 Arvind S N 2002-03-25 16:02:53 UTC
The patch is for gedit,ghex,ggv and eog.
Luis:in the chat we had yelp and archive generator on the list.
To launch yelp with a file, the format should be
'yelp ghelp:/filename', this is a problem. Is yelp supposed to
launch when we drop a file on it ?
With archive generator too I could not get it launch with a file 
from a command line, please let me know on this.

Are there any apps left out?? pls let me know and I will provide the
patch.

By the way ggv is not currently under Graphics, I think we need to add
it there.
Comment 9 Mark McLoughlin 2002-03-27 10:06:25 UTC
Okay, this was broken anyway ... fixed now ..

Arvind, I'd say you should be using %F ... look at

http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html#EXEC-VARIABLES

Also, log these as seperate bugs
Comment 10 Vincent Untz 2002-11-24 13:54:20 UTC
*** Bug 99329 has been marked as a duplicate of this bug. ***