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

This question already has an answer here:

I wanted fast access to my python shell, so I locked it to the launcher, but the icon is just a question mark, which I assume means it doesn't have the necessary file. For the sake of aesthetics, I would like to give it one, but I can't figure out how to. That is, I don't know what directory I should put it in, what type it should be (though I suspect .png) or what size (will it resize an oversized image to fit? or crop? or just mess up my dock?).

edit: grammar

share|improve this question

marked as duplicate by Nathan Osman, Rinzwind, hhlp, Javier Rivera, Amith KK Feb 13 '13 at 15:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

make desktop file, chmod +x it and after that lock it to launcher i guess. – geoh Feb 13 '13 at 4:56
I think it must be in /usr/share/icons/, and .png – geoh Feb 13 '13 at 4:57

I think this can help. At first keep icon in /usr/share/icons/blah.png.

And after that make a desktop launcher. More about that here.

And just lock your .desktop file there instead of your script.

OR use Unity API ? For info click here

share|improve this answer

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