[Build-common-hackers] Bug#439717: cdbs: run dh_desktop if needed.
Trent W. Buck
trentbuck at gmail.com
Sat Jan 31 00:37:18 UTC 2009
On Tue, Nov 27, 2007 at 03:35:37PM +0100, Peter Eisentraut wrote:
> Am Dienstag, 27. November 2007 schrieb Bernd Zeimetz:
>> dh_desktop is what you need to use if you install a desktop file
>
> I have installed many desktop files in my lifetime and I've never
> felt the need to run this program. I would like to see some
> documentation for why this is needed.
With respect, I am more interested in what lintian says than how you
feel.
W: midori: desktop-mimetype-without-update-call /usr/share/applications/midori.desktop
N:
N: Your package installs a .desktop file which contains a MimeType setting,
N: but it doesn't call update-desktop-database in the package postinst
N: maintainer script. This program updates the MIME type cache and should
N: be called whenever installing a package with a new MimeType
N: registration.
N:
N: If you are using debhelper, you can add the necessary fragment to your
N: postinst by calling dh_desktop in debian/rules.
N:
N: Severity: minor; Certainty: certain
Taking dh(1) as exemplary, this call should happen unconditionally in
the following sequence of the "install" target. I assume it is a noop
rather than an error when dh_desktop is unnecessary.
dh_installwm
dh_installxfonts
dh_lintian
dh_desktop
dh_gconf
dh_icons
dh_perl
More information about the Build-common-hackers
mailing list