diff options
author | Jani Välimaa <wally@mageia.org> | 2018-09-22 08:54:14 +0300 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2018-09-22 08:54:14 +0300 |
commit | ea9fb161bddb37190617c53c341ea09712dfd27f (patch) | |
tree | 2dd5eb683a5b92ee4515eaff29df0d52160b211e /check_desktop_files | |
parent | 0efb98276c3f6aad87fc67c91cecd5f76be13d21 (diff) | |
download | spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.gz spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.bz2 spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.xz spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.zip |
Check .desktop files only in /usr/share/applications
Diffstat (limited to 'check_desktop_files')
-rwxr-xr-x | check_desktop_files | 9 |
1 files changed, 2 insertions, 7 deletions
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) |