
Kevin James wrote:
Hi,
Are there any examples of how to put an icon for your module into the RPM package for a module? All the icons for the modules that ship with the distro seem to be in a separate RPM, but I want to package an icon with my custom module.
It's not a good idea to put that icon to your RPM because user can have several icon-themes installed in /usr/share/YaST2/theme/ directory at once. The current theme in use is symlinked from the "current" directory ... and yes, we know it is confusing :) ;) we now it is not ideal ... Anyway, there is a possibility how to package it, part of your .spec.in file: %dir @themedir@ %dir @themedir@/current %dir @themedir@/current/icons %dir @themedir@/current/icons/22x22/ %dir @themedir@/current/icons/22x22/apps/ %dir @themedir@/current/icons/32x32/ %dir @themedir@/current/icons/32x32/apps/ %dir @themedir@/current/icons/48x48/ %dir @themedir@/current/icons/48x48/apps/ @themedir@/current/icons/22x22/apps/${YOUR_ICON}.png @themedir@/current/icons/32x32/apps/${YOUR_ICON}.png @themedir@/current/icons/48x48/apps/${YOUR_ICON}.png ${YOUR_ICON} should be, of course, replaced with your icon name... Bye Lukas