From f96a2208b6a0ba89c3d824514a3929f08d79f7bf Mon Sep 17 00:00:00 2001 From: root Date: Mon, 26 Mar 2012 00:01:46 +0000 Subject: Mon Mar 26 00:01:45 UTC 2012 --- community/apper/apper.install | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 community/apper/apper.install (limited to 'community/apper/apper.install') 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 +} -- cgit v1.2.3-54-g00ecf