mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 21:07:14 +08:00
29 lines
348 B
Plaintext
29 lines
348 B
Plaintext
|
update_icons() {
|
||
|
|
||
|
# Setup Menus
|
||
|
if which update-desktop-database
|
||
|
then
|
||
|
update-desktop-database -q /usr/share/applications
|
||
|
fi
|
||
|
|
||
|
# Setup MIME types
|
||
|
if which update-mime-database
|
||
|
then
|
||
|
update-mime-database /usr/share/mime >/dev/null
|
||
|
fi
|
||
|
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
update_icons
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
update_icons
|
||
|
}
|
||
|
|
||
|
post_remove() {
|
||
|
update_icons
|
||
|
}
|
||
|
|