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 am using this code to set appropriate appindicator icon for my application. Basically I set separate mono dark/light icon for Ambiance and Radiance theme in order to integrate my app into Unity desktop just like many other apps do. This works well, but what I noticed is that other apps (Tomboy, thunderbird...) update their appindicator icons immediately after the theme is changed. How do they do that? With my current implementation, I need to restart my app in order to get the right icon.

share|improve this question
up vote 5 down vote accepted

Tomboy does not actually have a code for detecting theme changes. Its icon changes automatically because there is a Tomboy icon both in the ubuntu-icon-dark icon theme (used by Ambiance) and in the ubuntu-icon-light icon theme (used by Radiance). That's the recommended way.

share|improve this answer
Yeah, but those themes do not provide icon for my app :) – umpirsky Jan 20 '12 at 18:37
Not by default, but you can add them by making your package install your icons on the /usr/share/icons/ubuntu-icon-dark and /usr/share/icons/ubuntu-icon-light folders. – Marcelo Hashimoto Jan 20 '12 at 18:41

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.