summaryrefslogtreecommitdiff
path: root/community/apper/apper.install
blob: 9837f1937e0c562fd8d426f2a49645baadd62e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}