3

I'm trying to create a unity launcher icon (.dekstop file) on which you can drop any (selected/highlighted) text from a web browser, google chrome in my case.

I know you can use the "MimeType=" key in a .desktop file, but I can't find the right mime type for my scenario. I've tried several text MimeTypes and "text/*", but none of them would work.

Does anyone know which MimeType I have to use in order for my launcher icon to accept text when hovering over it?

  • the launcher sounds interesting..!! cant help but would love to have the launcher! gr8 idea :) – Nirmik Jun 1 '12 at 16:33
2

You can't drag/drop arbitrary clipboard contents onto launchers. The MimeType entry in the .desktop file specifies what file and content types the application can open, for the MIME system, and is as I understand the code, not used by the drag and drop handling. However, rather, the content of the drop is simply passed as an argument to the program, and must be a URI or file path, replacing %u, %U, %f, or %F, as specified in the Desktop Entry Specification, here: http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

  • I found that the MimeType key is actually necessary in Unity 2D. – Ian B. Jan 3 '13 at 19:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.