FS#11023 - kde packages and hicolor icon theme
Attached to Project:
Arch Linux
Opened by Jan de Groot (JGC) - Monday, 28 July 2008, 08:09 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 14 September 2008, 09:10 GMT
Opened by Jan de Groot (JGC) - Monday, 28 July 2008, 08:09 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 14 September 2008, 09:10 GMT
|
Details
Icons for KDE applications don't show up in my GNOME menu.
This is caused by an outdated iconcache for the hicolor
theme.
Please depend on hicolor-icon-theme for packages that install icons in /usr/share/icons/hicolor and add something like this to the postinstall/postupgrade of KDE applications: if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor fi |
This task depends upon
Closed by Pierre Schmitz (Pierre)
Sunday, 14 September 2008, 09:10 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in trunk
Sunday, 14 September 2008, 09:10 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in trunk
Even if I think Gnome should use inotify to check for changes . Anyway: we could add an update script to the hicolor-icons-package which does what described in this article: touching the several icons folders and running gtk-update-icon-cache. This could be simply called by all those install scripts.
xdg-icon-resource forceupdate --theme hicolor only updates the index, right?
And is it enought to just call "xdg-icon-resource forceupdate --theme hicolor" in post_update/post_install and post_remove?
I'm thinking about adding an icon cache for /usr/share/icons/gnome also, but that doesn't affect KDE.
icons-packages.sql (0.3 KiB)
To sum things up:
* Every pacakge touching /usr/share/icons/hicolor should depend (directly or indirectly) on hicolor-icon-theme and xdg-utils.
* On post_update/post_install and post_remove "xdg-icon-resource forceupdate --theme hicolor 2> /dev/null" should be called
Todo:
* Document this in a short Policy in the public Wiki at http://wiki.archlinux.org/index.php/DeveloperWiki
* Update the packages mentioned in the todo list according to this policy
* inform arch-dev-public about this
* make a list of affected [community] packages and send a mail to aur-general
* write a simple namcap rule which looks for /usr/share/icons/hicolor and triggers a warning including a link to the policy
Are you fine with that?