S033: tray, notifications, launcher progress, autostart, metainfo, test file
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
parent
8e00dcd6cc
commit
4ac8cd9379
1 changed files with 835 additions and 11 deletions
9
tools/validate-desktop.sh
Executable file
9
tools/validate-desktop.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
# Checks the desktop file, the metainfo, and that the MIME and scheme entries are there. Validators run when present.
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
rc=0
|
||||
grep -q 'x-scheme-handler/medlar' assets/medlar.desktop || { echo "scheme entry missing"; rc=1; }
|
||||
grep -q 'application/metalink' assets/medlar.desktop || { echo "metalink MIME entry missing"; rc=1; }
|
||||
if command -v desktop-file-validate >/dev/null; then desktop-file-validate assets/medlar.desktop || rc=1; else echo "desktop-file-validate not here"; fi
|
||||
if command -v appstreamcli >/dev/null; then appstreamcli validate --no-net assets/medlar.metainfo.xml || rc=1; else echo "appstreamcli not here"; fi
|
||||
exit $rc
|
||||
Loading…
Reference in a new issue