summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-22 13:24:43 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-22 13:24:43 -0500
commit4201f5a67b2cd284bfad9c964dfc9e8f690a8cc1 (patch)
treea0f7855625431b677335893a8753d52578fe0ab0
parent81d06dbbc472e400e2799108a946c80c0a5ee7be (diff)
downloadexperimental-4201f5a67b2cd284bfad9c964dfc9e8f690a8cc1.tar.gz
experimental-4201f5a67b2cd284bfad9c964dfc9e8f690a8cc1.zip
Fix remaining issues from mimetype icon rename
-rwxr-xr-xkde-tde/tde_mimetype_conversion18
1 files 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"