Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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'm developing a little application for Gnome, Unity and KDE desktops. I want the application icons to be fully theme aware.

Now, I'm including the icons on the application directory on /usr/lib/my-application/ as SVG, and I'm loading them with the full path. I suppose this is fine as the start point, but I want to integrate them on the system better.

My motivation: I don't want to break the Humanity and Humanity-Dark themes --very worried about the Indicator panel looks. How do I provide Humanity and Humanity-dark icons? How do I know the current theme? Should I ask for it?

I'm using mostly bash and python.

share|improve this question
freedesktop.org/wiki/Software/pyxdg – ymn Feb 5 '13 at 8:45

The icons are in /usr/share/icons, but the correct way of getting them depends of what libraries are you using, if is PyQt there is a method to get the icon from the current theme.

Check this: http://stackoverflow.com/questions/12805036/qicon-fromtheme-not-displaying-icon-in-pyqt

If you're using gtk I suppose there is an alternative, this is what Google says:


share|improve this answer

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.