Can an app in opt/extras install themeable icons in /usr/share

Posted by Peter Levi on Ask Ubuntu See other posts from Ask Ubuntu or by Peter Levi
Published on 2012-11-07T21:43:02Z Indexed on 2012/11/29 23:20 UTC
Read the original article Hit count: 301

My application Variety Wallpaper Changer runs from /opt/extras and uses an indicator icon. I would like to make this indicator icon theme-specific. As far as I understand the standard way is to install named icons into /usr/share/icons with xdg-icon-resource at installation time (Am I right about this?). I have two questions regarding this:

  1. Variety installs and runs from /opt/extras.ubuntu.com. Is it acceptable for it to install icons in /usr/share using xdg-icon-resource or is there something else I can do to have theme-specific icons without special-casing themes and dynamically selecting the icon in the code?

  2. Variety is packaged using Quickly (and I'm myself a newbie at packaging) - how can I configure it to install theme-specific named icons at installation time?

© Ask Ubuntu or respective owner

Related posts about application-development

Related posts about themes