diff options
author | root <root@rshg054.dnsready.net> | 2012-03-26 00:01:46 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-26 00:01:46 +0000 |
commit | f96a2208b6a0ba89c3d824514a3929f08d79f7bf (patch) | |
tree | 88c1033b9ec826ca6da1f1847685957bce496c62 /community/apper/apper.install | |
parent | 891f44722456b693d99b397f7e332a9ed68a47a2 (diff) |
Mon Mar 26 00:01:45 UTC 2012
Diffstat (limited to 'community/apper/apper.install')
-rw-r--r-- | community/apper/apper.install | 29 |
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 +} |