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 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). –  hbdgaf 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 Jan 18 '13 at 21:34

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.