summaryrefslogtreecommitdiff
path: root/community/apper/apper.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/apper/apper.install')
-rw-r--r--community/apper/apper.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/apper/apper.install b/community/apper/apper.install
new file mode 100644
index 000000000..9837f1937
--- /dev/null
+++ b/community/apper/apper.install
@@ -0,0 +1,29 @@
+available() {
+ which "$1" >/dev/null 2>&1
+}
+
+updatemime() {
+ # Setup Menus
+ if available update-desktop-database
+ then
+ update-desktop-database -q /usr/share/applications
+ fi
+
+ # Setup MIME types
+ if available update-mime-database
+ then
+ update-mime-database /usr/share/mime >/dev/null
+ fi
+}
+
+post_install() {
+ updatemime
+}
+
+post_upgrade() {
+ updatemime
+}
+
+post_remove() {
+ updatemime
+}