]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_desktop
dh_desktop: Avoid using find -execdir as it will fail with certian badly configured...
[debhelper.git] / dh_desktop
index 1b32fc99718cae3e9636010a3b73e0fd5b5f3faa..7900152353ce22658c73e7e2ae85006f5da5a370 100755 (executable)
@@ -36,7 +36,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                # 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'`;
+               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");