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