mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
42 lines
666 B
Text
42 lines
666 B
Text
# doublecmd-svn.install
|
|
|
|
update_icons() {
|
|
|
|
# Setup Menus
|
|
if which update-desktop-database
|
|
then
|
|
update-desktop-database -q /usr/share/applications > /dev/null 2>&1
|
|
fi
|
|
|
|
# Setup MIME types
|
|
if which update-mime-database
|
|
then
|
|
update-mime-database /usr/share/mime > /dev/null 2>&1
|
|
fi
|
|
|
|
# Setup Icons
|
|
touch -c /usr/share/icons/hicolor
|
|
if which gtk-update-icon-cache
|
|
then
|
|
gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1
|
|
fi
|
|
|
|
}
|
|
|
|
update_cache() {
|
|
touch /usr/share/doublecmd/pixmaps/dctheme/icon-theme.cache
|
|
}
|
|
|
|
post_install() {
|
|
update_icons
|
|
update_cache
|
|
}
|
|
|
|
post_upgrade() {
|
|
update_icons
|
|
update_cache
|
|
}
|
|
|
|
post_remove() {
|
|
update_icons
|
|
}
|