From ea9fb161bddb37190617c53c341ea09712dfd27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sat, 22 Sep 2018 08:54:14 +0300 Subject: Check .desktop files only in /usr/share/applications --- NEWS | 2 ++ check_desktop_files | 9 ++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 2ff2709..f0f06da 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + * check .desktop files only in /usr/share/applications + 2018-08-26 Jani Välimaa 0.31.20 * clean_perl: clean perl stuff only from $RPM_BUILD_ROOT diff --git a/check_desktop_files b/check_desktop_files index b9e479a..e640e11 100755 --- a/check_desktop_files +++ b/check_desktop_files @@ -23,13 +23,8 @@ sub main { wanted => sub { - # xsession files are not *really* desktop files - # https://bugs.freedesktop.org/show_bug.cgi?id=85938 - # nor are khelpcenter or mga/dm files - return if $File::Find::dir eq $buildroot . '/usr/share/xsessions' || - $File::Find::dir eq $buildroot . '/usr/share/wayland-sessions' || - $File::Find::dir eq $buildroot . '/usr/share/khelpcenter/plugins' || - $File::Find::dir eq $buildroot . '/usr/share/mga/dm'; + # check files only in /usr/share/applications + return unless $File::Find::dir eq $buildroot . '/usr/share/applications'; my $fn = $File::Find::name; if ($fn =~ $FILTER) -- cgit v1.2.1