X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_desktop;h=075597fb3a117456df027a84eed566b3a1595351;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=1b32fc99718cae3e9636010a3b73e0fd5b5f3faa;hpb=2edd22215ace8da90de46142b3b38896ee0aed72;p=debhelper.git diff --git a/dh_desktop b/dh_desktop index 1b32fc9..075597f 100755 --- a/dh_desktop +++ b/dh_desktop @@ -2,7 +2,7 @@ =head1 NAME -dh_desktop - Register .desktop files +dh_desktop - deprecated no-op =cut @@ -15,34 +15,18 @@ B [S>] =head1 DESCRIPTION -dh_desktop is a debhelper program that registers .desktop files. -Currently this program does not handle installation of the files, though it -may do so at a later date. It takes care of adding maintainer script -fragments to call F. +B was a debhelper program that registers F<.desktop> files. +However, it no longer does anything, and is now deprecated. -Note that since F currently only handles mime -types, as an optimisation, desktop files not containing MimeType fields -will currently be ignored by dh_desktop. +If a package ships F files, they just need to be installed in the +correct location (F) and they will be registered by +the appropriate tools for the corresponding desktop environments. =cut init(); -foreach my $package (@{$dh{DOPACKAGES}}) { - my $tmp=tmpdir($package); - - if (-d "$tmp/usr/share/applications") { - # Get a list of the desktop files that are in - # usr/share/applications and thus might need - # update-desktop-database be called. Other desktop - # files don't. - my $desktop_files = `find $tmp/usr/share/applications -type f -name \\*.desktop -execdir grep -q "^MimeType" '{}' \\; -printf '%p\n'`; - if ($desktop_files && ! $dh{NOSCRIPTS}) { - autoscript($package,"postinst","postinst-desktop"); - autoscript($package,"postrm","postrm-desktop"); - } - } -} +warning("This program is deprecated, and does nothing anymore."); =head1 SEE ALSO