Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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:

http://www.pygtk.org/docs/pygtk/class-gtkicontheme.html

share|improve this answer
add comment

Your Answer

 
discard

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.