aboutsummaryrefslogtreecommitdiffstats
path: root/x11/shared-mime-info/shared-mime-info.trigger
diff options
context:
space:
mode:
Diffstat (limited to 'x11/shared-mime-info/shared-mime-info.trigger')
-rw-r--r--x11/shared-mime-info/shared-mime-info.trigger7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11/shared-mime-info/shared-mime-info.trigger b/x11/shared-mime-info/shared-mime-info.trigger
new file mode 100644
index 0000000000..51a3e4953e
--- /dev/null
+++ b/x11/shared-mime-info/shared-mime-info.trigger
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in "$@"; do
+ if [ -d "$i" ]; then
+ update-mime-database "$i" > /dev/null 2>&1
+ fi
+done