Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
the launcher sounds interesting..!! cant help but would love to have the launcher! gr8 idea :) – Nirmik Jun 1 '12 at 16:33

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:

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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