that's another thing that oxygen is bringing to kde4 besides just new icons: new icon names. these are in line with the icon naming spec that is still being added to and tweaked under the freedesktop.org umbrella. that means we can share icon themes between toolkits much more easily since apps targetted at the free software desktop will use the same names for similar icons. hooray!
of course, this means you need to port your app to these new names. oh no! enter Luca Gugelmann who whipped up a very cool python script which you can find in kdesdk/scripts/qt4/adapt-to-icon-spec.py.
it's an interactive script which you run from the root of your project. it catches the obvious things, like uses of KIcon and KIconLoader and skips things it can figure out can't be icons. for the fuzzies, it asks you as can be seen in this screenshot:
ok, the screenshot is a bit ugly but i had to get it down so it would fit decently on the blog ;) as you can see it shows context and you can request more of it by pressing 'm'. there is a help menu ('?'), but generally you just hit 'y' or 'n'. voila. couldn't be easier, really.
things left to do:
- port the remaining handful of modules: hopefully will be done by end of today
- modify the icon themes in kdeartwork/IconThemes to also use the new names. taking Luca's script which lists all the name changes and working from there would be a good place to start. just a bunch of svn mv's really, perfect for scripting.
- figure out the legality of the CC 3.0 SA-BY license for use with artwork loaded from disk when it comes to, say, being Free enough for inclusion in even Debian and how it interacts with both proprietary and *GPL software. obviously a job for a lawyer.