summarylogtreecommitdiffstats
path: root/update-mime-database.hook
diff options
context:
space:
mode:
authorPatrick Griffis2016-07-05 18:42:04 -0400
committerPatrick Griffis2016-07-05 18:42:04 -0400
commit8bf96aba796c4ad7358b0416e46f278feb2887f9 (patch)
treedea354b58736403316f88117eb3ecf2c86007e8d /update-mime-database.hook
downloadaur-8bf96aba796c4ad7358b0416e46f278feb2887f9.tar.gz
Initial commit
Diffstat (limited to 'update-mime-database.hook')
-rw-r--r--update-mime-database.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/update-mime-database.hook b/update-mime-database.hook
new file mode 100644
index 000000000000..f8470fb2c36f
--- /dev/null
+++ b/update-mime-database.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/mime/packages/*.xml
+
+[Action]
+Description = Updating the MIME type database...
+When = PostTransaction
+Exec = /usr/bin/update-mime-database /usr/share/mime