Skip to content

Commit

Permalink
Add some more triggers
Browse files Browse the repository at this point in the history
These cover other well-known cases of install-time updated
caches: desktop database, mime database and input method modules.

https://bugzilla.gnome.org/show_bug.cgi?id=654512
  • Loading branch information
Matthias Clasen authored and cgwalters committed Jul 15, 2011
1 parent 46d715f commit 6c4121c
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
5 changes: 4 additions & 1 deletion triggers/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 22 additions & 0 deletions triggers/desktop-database.trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Post-installation hook for desktop files. -*- mode: sh -*-
#
# Written by Matthias Clasen <[email protected]>
#
# 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
22 changes: 22 additions & 0 deletions triggers/immodules.trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Post-installation hook for GTK+ input method modules. -*- mode: sh -*-
#
# Written by Matthias Clasen <[email protected]>
#
# 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
22 changes: 22 additions & 0 deletions triggers/mime-database.trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Post-installation hook for shared-mime-info. -*- mode: sh -*-
#
# Written by Matthias Clasen <[email protected]>
#
# 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

0 comments on commit 6c4121c

Please sign in to comment.