aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/35-desktop.t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/35-desktop.t.sh')
-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