aports/main/glib/glib.trigger
omni 44b5267c54 main/glib: use portable code to suppress part of trigger output
this is what I wanted to do, but didn't figure out how to, thank you
Valery Ushakov for the example code

it also looks like the hack I had will fail with dash-binsh and
yash-binsh, regardless of the if-statement checking for busybox-binsh
2024-12-09 02:53:37 +00:00

20 lines
486 B
Bash

#!/bin/sh
for i in "$@"; do
if ! [ -e "$i" ]; then
continue
fi
case "$i" in
*/modules|*gtk-4.0)
/usr/bin/gio-querymodules "$i"
;;
*/schemas)
# Suppressing output since it shows warnings about bad dconf paths
# that aren't useful to end users.
# Can be removed once all known applications (gsettings-desktop-schemas,
# seahorse, ibus, gcr3) have migrated.
( /usr/bin/glib-compile-schemas "$i" 2>&1 1>&3 | \
sed -e '/are deprecated/d' 1>&2 ) 3>&1
;;
esac
done