doublecmd-svn.install 557 B

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