mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
30 lines
415 B
Plaintext
30 lines
415 B
Plaintext
|
available()
|
||
|
{
|
||
|
which "$1" >/dev/null 2>&1
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
if available update-mime-database
|
||
|
then
|
||
|
update-mime-database /usr/share/mime >/dev/null
|
||
|
fi
|
||
|
|
||
|
if available update-desktop-database
|
||
|
then
|
||
|
update-desktop-database -q /usr/share/applications
|
||
|
fi
|
||
|
|
||
|
if available gtk-update-icon-cache
|
||
|
then
|
||
|
gtk-update-icon-cache -q /usr/share/icons/hicolor
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
post_install
|
||
|
}
|
||
|
|
||
|
post_remove() {
|
||
|
post_install
|
||
|
}
|