Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

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

Your Answer

 
discard

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.