From ae2af46a936b05b60bce0132bacc7fc609f5a749 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 14 May 2023 17:42:13 -0400 Subject: sbopkglint: allow *-mimetypes.list in desktop dir. --- sbopkglint.d/35-desktop.t.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sbopkglint.d/35-desktop.t.sh b/sbopkglint.d/35-desktop.t.sh index 03f52de..3c482ac 100644 --- a/sbopkglint.d/35-desktop.t.sh +++ b/sbopkglint.d/35-desktop.t.sh @@ -9,6 +9,10 @@ # if the package contains any files in /usr/share/applications/, they # must be named *.desktop, must pass desktop-file-validate, and must # be mode 644, owner root:root. +# +# the one exception: files named *-mimeapps.list are allowed (though they +# are not checked for content). see: +# https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html BADPERMS="" BADDESKTOP="" @@ -27,6 +31,7 @@ check_desktop_dir() { [ "$( stat -Lc '%a %U %G' "$f" )" = "644 root root" ] || BADPERMS+="$f " case "$f" in *.desktop) desktop-file-validate "$f" || BADDESKTOP+="$f " ;; + *-mimeapps.list) ;; # OK, ignore *) NONDESKTOP+="$f " ;; esac done -- cgit v1.2.3