Dragging of files from a file manager like thunar to panel launchers works fine. But it won't work for filenames dropped whose source is something like an editor or web browser. The launcher plugin only accepts text/uri-list but IMO it happens often that people are dragging other kinds of text to launchers like text/plain which just don't work.
Created attachment 1569 Allow other text formats for DnD than text/uri-list This patch allows also "STRING", "UTF8_STRING" and "text/plain" as drop targets for the panel launcher and interprets the received data accordingly. Note: there is probably a smarter way of checking the target type of the received data than comparing gdk_atom_name(selection_data->target and "text/uri-list" but for now it works.
The launcher in Xfce 4.4 supports the "text/uri-list", "text/x-moz-url", and "STRING" targets. In the case of text/x-moz-url, it apparently does some utf16 to utf8 conversion.
I really don't see how this is a bug. Why would someone drop a string on the launcher that is an uri.
(In reply to comment #3) > I really don't see how this is a bug. Why would someone drop a string on the > launcher that is an uri. > Use cases: * A user goes to a website (maybe a forum) where another user/the site owner has written an uri to anoter site, but as non-clickable text. The user wants to open it in a new window/tab, selects the uri text, and drag it to their web browser panel launcher. (Right now, in svn, one can't even drag clickable links from gecko browsers to a panel launcher). * A program accepts all sorts of text (non-uri) as argument, and can do something with it (e.g. put it in the clipboard, or send a mail with the dragged text as content), and the user wants to use this feature in a panel launcher.
O wait, that kinde drops, I though dropping .desktop files in the preferences window, my bad...
Fixed with revision 27412
Thanks!