Le mercredi 30 juin 2010 à 19:17 +0200, Sebastien Bacher a écrit :
> Since glib-compile-schemas is used to register schemas it should be in
> the bin and not the dev binary, those are the changes Robert Ancell did
> in Ubuntu for that, he also added a trigger to register schemas
Thanks for the patch.
Note that the syntax for the trigger is incorrect since several triggers
can be passed at once, separated by spaces but all in $2 (which is not
very intuitive). Therefore it should be something like this:
if [ "$1" = triggered ]; then
for trigger in $2; do
case $trigger in
/usr/share/glib-2.0/schemas)
# This is triggered everytime an application installs a
GSettings schema
glib-compile-schemas /usr/share/glib-2.0/schemas || true
;;
/usr/lib/gio/modules)
# This is triggered everytime an application installs a GIO
# module into /usr/lib/gio/modules
gio-querymodules /usr/lib/gio/modules
;;
esac
done
exit 0
fi
Cheers,
--
.''`.
: :' : “Fuck you sir, don’t be suprised when you die if
`. `' you burn in Hell, because I am a solid Christian
`- and I am praying for you.” -- Mike
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]