summaryrefslogtreecommitdiff
path: root/dh_desktop
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-10 15:37:36 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-10 15:37:36 -0400
commit877c62f70a904c1f549fbee9f763345bc19c6697 (patch)
treecf784a0e12027d46a4e1ea8f7deed04b4f3540e8 /dh_desktop
parentf2c0117a7d1585401dea0cad7a23b59c3b311681 (diff)
dh_desktop: Now a deprecated no-op, since desktop-file-utils uses triggers. Closes: #523474 (also Closes: #521960, #407701 as no longer applicable)
Diffstat (limited to 'dh_desktop')
-rwxr-xr-xdh_desktop28
1 files changed, 4 insertions, 24 deletions
diff --git a/dh_desktop b/dh_desktop
index 7900152..6fb7d02 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,14 @@ B<dh_desktop> [S<I<debhelper options>>]
=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<update-desktop-database>.
-
-Note that since F<update-desktop-database> currently only handles mime
-types, as an optimisation, desktop files not containing MimeType fields
-will currently be ignored by dh_desktop.
+dh_desktop was a debhelper program that registers .desktop files.
+However, it no longer does anything, and is now deprecated.
=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 -exec 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