From 4201f5a67b2cd284bfad9c964dfc9e8f690a8cc1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 22 Oct 2014 13:24:43 -0500 Subject: Fix remaining issues from mimetype icon rename --- kde-tde/tde_mimetype_conversion | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/kde-tde/tde_mimetype_conversion b/kde-tde/tde_mimetype_conversion index 75b120f..117e7fd 100755 --- a/kde-tde/tde_mimetype_conversion +++ b/kde-tde/tde_mimetype_conversion @@ -39,20 +39,11 @@ function convert_files { echo "===================================================" echo "Converting $1..." - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIconSet(\"$1\"/SmallIconSet(\"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIconSet( \"$1\"/SmallIconSet( \"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/IconSet(\"$1\"/IconSet(\"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/IconSet( \"$1\"/IconSet( \"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIcon(\"$1\"/SmallIcon(\"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIcon( \"$1\"/SmallIcon( \"$2\"/g" {} \; - - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/DesktopIcon(\"$1\"/DesktopIcon(\"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/DesktopIcon( \"$1\"/DesktopIcon( \"$2\"/g" {} \; - - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/BarIcon(\"$1\"/BarIcon(\"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/BarIcon( \"$1\"/BarIcon( \"$2\"/g" {} \; - - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/loadIcon(\"$1\"/loadIcon(\"\"$2\"/g" {} \; - find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/loadIcon( \"$1\"/loadIcon( \"\"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/Icon(\"$1\"/Icon(\"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/Icon( \"$1\"/Icon( \"$2\"/g" {} \; find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i "s/Icon=$1/Icon=$2/g" {} \; find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i "s/Icon=$1/Icon=$2/g" {} \; @@ -161,7 +152,6 @@ convert_files "tex" "text-x-tex" convert_files "tgz" "application-x-tarz" convert_files "txt2" "application-vnd\.tde\.text\.alt" convert_files "txt" "text-plain" -convert_files "unknown" "text-x-katefilelist" convert_files "vectorgfx" "image-svg+xml" convert_files "widget_doc" "application-x-designer" convert_files "wordprocessing" "application-vnd\.oasis\.opendocument\.text" -- cgit v1.2.3