aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-14 17:42:13 -0400
committerB. Watson <urchlay@slackware.uk>2023-05-14 17:42:13 -0400
commitae2af46a936b05b60bce0132bacc7fc609f5a749 (patch)
treed538a1d70935b883fe303165a4ebd0f62cbadb05
parent8de8e6433515a071b780d927b50035ca46fbd030 (diff)
downloadsbo-maintainer-tools-ae2af46a936b05b60bce0132bacc7fc609f5a749.tar.gz
sbopkglint: allow *-mimetypes.list in desktop dir.
-rw-r--r--sbopkglint.d/35-desktop.t.sh5
1 files changed, 5 insertions, 0 deletions
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