Branch: master

4201f5a6 2014-10-22 13:24:43 Timothy Pearson
Fix remaining issues from mimetype icon rename
M kde-tde/tde_mimetype_conversion
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 @@
 	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 "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"