diff options
Diffstat (limited to 'development/eclipse/doinst.sh')
-rw-r--r-- | development/eclipse/doinst.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/development/eclipse/doinst.sh b/development/eclipse/doinst.sh index cc11d6e883820..a06ab18ea8712 100644 --- a/development/eclipse/doinst.sh +++ b/development/eclipse/doinst.sh @@ -12,13 +12,20 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -config opt/eclipse/configuration/config.ini.new -config opt/eclipse/eclipse.ini.new +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi -if [ -x usr/bin/update-desktop-database ]; then - usr/bin/update-desktop-database -q usr/share/applications +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi -if [ -x usr/bin/update-mime-database ]; then - usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi fi + +config opt/eclipse/configuration/config.ini.new +config opt/eclipse/eclipse.ini.new + |