X-Git-Url: https://git.donarmstrong.com/?p=debhelper.git;a=blobdiff_plain;f=dh_desktop;h=075597fb3a117456df027a84eed566b3a1595351;hp=8baf684381d2658c24b45294fd729cd4250a1e46;hb=fb8f18f4a98669c3b85e1bd7920fbabfc00b886e;hpb=8984e430ad35066bdd26052348a42d9daaed36d6 diff --git a/dh_desktop b/dh_desktop old mode 100644 new mode 100755 index 8baf684..075597f --- a/dh_desktop +++ b/dh_desktop @@ -2,7 +2,7 @@ =head1 NAME -dh_desktop - Register .desktop files +dh_desktop - deprecated no-op =cut @@ -11,34 +11,22 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS -B [S>] [B<-p>] +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 -fragements to call F. +B was a debhelper program that registers F<.desktop> files. +However, it no longer does anything, and is now deprecated. + +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); - - # Only run if there are .desktop files installed - if (-d "$tmp/usr/share/applications") { - # Get a list of the desktop files - my $desktop_files = `find debian/$package/ -type f -name \*.desktop -printf '%p\n'`; - # If there actually were some desktop files... - if ($desktop_files && ! $dh{NOSCRIPTS}) { - # Don't add a dependency on desktop-file-utils as it may not be needed - autoscript($package,"postinst","postinst-desktop"); - autoscript($package,"postrm","postrm-desktop"); - } - } -} +warning("This program is deprecated, and does nothing anymore."); =head1 SEE ALSO