4 MIMELNK=/opt/kde/share/mimelnk/application
6 if [ -d ${MIMELNK} ]; then
7 # Revert changes (if any) since they are not needed anymore
8 sed -e 's|Icon=odf_odc|Icon=kchart_chrt|' -i ${MIMELNK}/vnd.oasis.opendocument.chart.desktop
9 sed -e 's|Icon=odf_odf|Icon=formula|' -i ${MIMELNK}/vnd.oasis.opendocument.formula.desktop
10 sed -e 's|Icon=odf_odg|Icon=drawing|' -i ${MIMELNK}/vnd.oasis.opendocument.graphics.desktop
11 sed -e 's|Icon=odf_odg|Icon=drawing|' -i ${MIMELNK}/vnd.oasis.opendocument.graphics-template.desktop
12 sed -e 's|Icon=odf_odi|Icon=krita_kra|' -i ${MIMELNK}/vnd.oasis.opendocument.image.desktop
13 sed -e 's|Icon=odf_odp|Icon=presentation|' -i ${MIMELNK}/vnd.oasis.opendocument.presentation.desktop
14 sed -e 's|Icon=odf_odp|Icon=presentation|' -i ${MIMELNK}/vnd.oasis.opendocument.presentation-template.desktop
15 sed -e 's|Icon=odf_ods|Icon=spreadsheet|' -i ${MIMELNK}/vnd.oasis.opendocument.spreadsheet.desktop
16 sed -e 's|Icon=odf_ods|Icon=spreadsheet|' -i ${MIMELNK}/vnd.oasis.opendocument.spreadsheet-template.desktop
17 sed -e 's|Icon=odf_odt|Icon=wordprocessing|' -i ${MIMELNK}/vnd.oasis.opendocument.text.desktop
18 sed -e 's|Icon=odf_odt|Icon=wordprocessing|' -i ${MIMELNK}/vnd.oasis.opendocument.text-template.desktop
19 sed -e 's|Icon=odf_odb|Icon=spreadsheet|' -i ${MIMELNK}/vnd.sun.xml.base.desktop
21 # Kept here for backwards-compatibility
22 sed -e 's|Icon=odf-odc|Icon=kchart_chrt|' -i ${MIMELNK}/vnd.oasis.opendocument.chart.desktop
23 sed -e 's|Icon=odf-odf|Icon=formula|' -i ${MIMELNK}/vnd.oasis.opendocument.formula.desktop
24 sed -e 's|Icon=odf-odg|Icon=drawing|' -i ${MIMELNK}/vnd.oasis.opendocument.graphics.desktop
25 sed -e 's|Icon=odf-odg|Icon=drawing|' -i ${MIMELNK}/vnd.oasis.opendocument.graphics-template.desktop
26 sed -e 's|Icon=odf-odi|Icon=krita_kra|' -i ${MIMELNK}/vnd.oasis.opendocument.image.desktop
27 sed -e 's|Icon=odf-odp|Icon=presentation|' -i ${MIMELNK}/vnd.oasis.opendocument.presentation.desktop
28 sed -e 's|Icon=odf-odp|Icon=presentation|' -i ${MIMELNK}/vnd.oasis.opendocument.presentation-template.desktop
29 sed -e 's|Icon=odf-ods|Icon=spreadsheet|' -i ${MIMELNK}/vnd.oasis.opendocument.spreadsheet.desktop
30 sed -e 's|Icon=odf-ods|Icon=spreadsheet|' -i ${MIMELNK}/vnd.oasis.opendocument.spreadsheet-template.desktop
31 sed -e 's|Icon=odf-odt|Icon=wordprocessing|' -i ${MIMELNK}/vnd.oasis.opendocument.text.desktop
32 sed -e 's|Icon=odf-odt|Icon=wordprocessing|' -i ${MIMELNK}/vnd.oasis.opendocument.text-template.desktop
33 sed -e 's|Icon=odf-odb|Icon=spreadsheet|' -i ${MIMELNK}/vnd.sun.xml.base.desktop
43 [ "$(type -t "$op")" = "function" ] && $op "$@"
45 # vim:set ts=2 sw=2 et: