| 1 |
# doublecmd-svn.install |
| 2 |
|
| 3 |
update_icons() { |
| 4 |
|
| 5 |
# Setup Menus |
| 6 |
if which update-desktop-database |
| 7 |
then |
| 8 |
update-desktop-database -q /usr/share/applications > /dev/null 2>&1 |
| 9 |
fi |
| 10 |
|
| 11 |
# Setup MIME types |
| 12 |
if which update-mime-database |
| 13 |
then |
| 14 |
update-mime-database /usr/share/mime > /dev/null 2>&1 |
| 15 |
fi |
| 16 |
|
| 17 |
# Setup Icons |
| 18 |
touch -c /usr/share/icons/hicolor |
| 19 |
if which gtk-update-icon-cache |
| 20 |
then |
| 21 |
gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1 |
| 22 |
fi |
| 23 |
|
| 24 |
} |
| 25 |
|
| 26 |
post_install() { |
| 27 |
update_icons |
| 28 |
} |
| 29 |
|
| 30 |
post_upgrade() { |
| 31 |
update_icons |
| 32 |
} |
| 33 |
|
| 34 |
post_remove() { |
| 35 |
update_icons |
| 36 |
} |