diff --git a/triggers/Makefile.am b/triggers/Makefile.am index 789ef6f53..1d1cdf9d6 100644 --- a/triggers/Makefile.am +++ b/triggers/Makefile.am @@ -3,4 +3,7 @@ trigger_DATA = \ gdk-pixbuf.trigger \ glib.trigger \ gtk+.trigger \ - pango.trigger + pango.trigger \ + desktop-database.trigger \ + mime-database.trigger \ + immodules.trigger diff --git a/triggers/desktop-database.trigger b/triggers/desktop-database.trigger new file mode 100644 index 000000000..10a565d83 --- /dev/null +++ b/triggers/desktop-database.trigger @@ -0,0 +1,22 @@ +# Post-installation hook for desktop files. -*- mode: sh -*- +# +# Written by Matthias Clasen +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +# IfExecutable: update-desktop-database +# REMatch: /share/applications/.*/.*\.desktop + +update-desktop-database -q diff --git a/triggers/immodules.trigger b/triggers/immodules.trigger new file mode 100644 index 000000000..1248c1e02 --- /dev/null +++ b/triggers/immodules.trigger @@ -0,0 +1,22 @@ +# Post-installation hook for GTK+ input method modules. -*- mode: sh -*- +# +# Written by Matthias Clasen +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +# IfExecutable: gtk-query-immodules-3.0 +# REMatch: /lib.*/gtk-3\.0/3\.0\.0/immodules/.*\.so + +gtk-query-immodules-3.0 --update-cache diff --git a/triggers/mime-database.trigger b/triggers/mime-database.trigger new file mode 100644 index 000000000..e680795e8 --- /dev/null +++ b/triggers/mime-database.trigger @@ -0,0 +1,22 @@ +# Post-installation hook for shared-mime-info. -*- mode: sh -*- +# +# Written by Matthias Clasen +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +# IfExecutable: update-mime-database +# REMatch: /mime/packages/.*\.xml + +update-mime-database $JHBUILD_PREFIX/share/mime