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-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

# If other icon themes are installed, then add to/modify this as needed
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 -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

if [ -e usr/share/glib-2.0/schemas ]; then
  if [ -x /usr/bin/glib-compile-schemas ]; then
    /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
  fi
fi


( cd usr/share/help/es/drawing/figures ; rm -rf drawing.svg )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/drawing.svg drawing.svg )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_arrow.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_arrow.png screenshot_arrow.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_color_editor.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_editor.png screenshot_color_editor.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_color_palette.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_palette.png screenshot_color_palette.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_filters.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_filters.png screenshot_filters.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_fullscreen.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_fullscreen.png screenshot_fullscreen.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_hsl.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_hsl.png screenshot_hsl.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_menu.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_menu.png screenshot_menu.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_prefs_images.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_images.png screenshot_prefs_images.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_prefs_tools.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_tools.png screenshot_prefs_tools.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_scale.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_scale.png screenshot_scale.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_selection.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_selection.png screenshot_selection.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_text.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_text.png screenshot_text.png )
( cd usr/share/help/es/drawing/figures ; rm -rf screenshot_zoom.png )
( cd usr/share/help/es/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_zoom.png screenshot_zoom.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf drawing.svg )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/drawing.svg drawing.svg )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_arrow.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_arrow.png screenshot_arrow.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_color_editor.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_editor.png screenshot_color_editor.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_color_palette.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_palette.png screenshot_color_palette.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_filters.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_filters.png screenshot_filters.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_fullscreen.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_fullscreen.png screenshot_fullscreen.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_hsl.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_hsl.png screenshot_hsl.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_menu.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_menu.png screenshot_menu.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_prefs_images.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_images.png screenshot_prefs_images.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_prefs_tools.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_tools.png screenshot_prefs_tools.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_scale.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_scale.png screenshot_scale.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_selection.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_selection.png screenshot_selection.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_text.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_text.png screenshot_text.png )
( cd usr/share/help/ru/drawing/figures ; rm -rf screenshot_zoom.png )
( cd usr/share/help/ru/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_zoom.png screenshot_zoom.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf drawing.svg )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/drawing.svg drawing.svg )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_arrow.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_arrow.png screenshot_arrow.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_color_editor.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_editor.png screenshot_color_editor.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_color_palette.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_color_palette.png screenshot_color_palette.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_filters.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_filters.png screenshot_filters.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_fullscreen.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_fullscreen.png screenshot_fullscreen.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_hsl.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_hsl.png screenshot_hsl.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_menu.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_menu.png screenshot_menu.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_prefs_images.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_images.png screenshot_prefs_images.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_prefs_tools.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_prefs_tools.png screenshot_prefs_tools.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_scale.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_scale.png screenshot_scale.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_selection.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_selection.png screenshot_selection.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_text.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_text.png screenshot_text.png )
( cd usr/share/help/tr/drawing/figures ; rm -rf screenshot_zoom.png )
( cd usr/share/help/tr/drawing/figures ; ln -sf ../../../C/drawing/figures/screenshot_zoom.png screenshot_zoom.png )
