Re: Bug#460504: dh_desktop/dh_icons madness
On Sun, Jan 13, 2008, Peter Eisentraut wrote:
> It seems to me that, in principle, if some third package or user environment
> wants something to be done for its own functional benefit, it should be its own
> responsibility to arrange that, instead of bothering thousands of other
> packages with it.
Theoretically, this is supposed to only affect all packages shipping
icons in particular directories; for example, you have to coordinate
addition of cache handling snippets for all packages shipping files
below /usr/share/icons/hicolor otherwise you'll be missing some icons
when you install a package without the snippets.
> On a technical level, the best approach would appear to be
> implementing some sort of global dpkg postinst and postrm hooks.
Yes, "triggers"; I think these were not available at the time of the
first implementations; I did object to the current implementation for
many reasons -- but not to use triggers -- but as I didn't produce any
alternative code, the proposed implementation was merged and is now
what we rely on. I'd very much like if someone would provide a simpler
implementation, which I imagine could be based on triggers.