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 have written a program that runs from the unity launcher. In my preferences it would be useful for users to change the default icon of the .desktop launcher. I've set it up to change the file, but changes don't take effect until the user logs out and back in (or unity --replace).

Is there a simple way to trigger Unity to refresh its icons using python?

share|improve this question
I don't believe there is a way to do this (also, I prefer setsid unity over unity replace). – RobotHumans Aug 5 '12 at 23:09
So far the only way I've found to do it is to remove the launcher from the launcher favorite list and then re-add it. Unfortunately, removing the item also closes the program if it's open. – Ian B. Aug 7 '12 at 12:50
Since this is a programming question, perhaps ask over at StackOverflow? – Ken Kinder Jan 18 '13 at 21:34

Your Answer


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

Browse other questions tagged or ask your own question.