Le lundi 12 février 2007 à 11:08 +0000, Barak A. Pearlmutter a écrit : > Okay, I'm trying to rev a package with some icons (djvulibre) and two > different bodies have hacked in two different mechanisms. > > Ubuntu added a dh_iconcache call to debian/rules. > But according to a blog entry about this, I shouldn't expect > dh_iconcache in debian debhelper anytime soon, so that's not a > solution for me.
> case "$1" in > install) > "$xdg_icon_resource" install --context apps \ > --size 32 ./hi32-djview4.xpm djvulibre-djview4 > "$xdg_desktop_menu" install ./djvulibre-djview4.desktop > So let me beg for an answer from the debhelper packaging oracle: given > the current situation, what should I do? What is "the right thing"? In all cases the right thing is to never do anything this complicated in the maintainer scripts. Currently there isn't any icon cache for the "hicolor" and "gnome" themes. I hope the changes proposed by Loïc are implemented in Lenny, as it seems the freedesktop.org guys are not going back on their stupid ideas. In all cases, the only thing you have to do is to install the icon in the correct directory. Here, you only drop /usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.xpm in the package, and it will work. As for the .desktop file, the situation is similar, except that we already have the debhelper snippet. Simply drop /usr/share/applications/djvulibre-djview4.desktop in the package and use dh_desktop. > Not in some idyllic future when we have everything worked out, and > have taught the Ubuntu people to talk to their betters before > embarking on changes that make sharing code more difficult, but today! The only change that may appear in the future to handle this is to add a dh_iconcache line to your rules file, nothing more. -- .''`. : :' : We are debian.org. Lower your prices, surrender your code. `. `' We will add your hardware and software distinctiveness to `- our own. Resistance is futile.
signature.asc
Description: Ceci est une partie de message numériquement signée

