blob: ebcff082c0e9d5dd365fab809e60d98a6efa5ca2 (
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
|
post_install() {
if command -v gtk-update-icon-cache >/dev/null; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
fi
if command -v update-desktop-database >/dev/null; then
update-desktop-database -q
fi
printf '%s\n' \
'Optional: set Powhttp as the handler for powhttp:// links:' \
' xdg-mime default powhttp.desktop x-scheme-handler/powhttp'
}
post_upgrade() {
if command -v gtk-update-icon-cache >/dev/null; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
fi
if command -v update-desktop-database >/dev/null; then
update-desktop-database -q
fi
}
post_remove() {
if command -v gtk-update-icon-cache >/dev/null; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
fi
if command -v update-desktop-database >/dev/null; then
update-desktop-database -q
fi
}
|