Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / apps / konqueror / convert_kdelnk.sh
blob02ed247e65ad36bab15d7375dafc152ba14be11e
1 #!/bin/sh
3 # Converts all user's .kdelnk files to .desktop
4 # Necessary to avoid duplication when saving a mimetype or an applnk
6 find ~/.kde/share/mimelnk ~/.kde/share/applnk -name "*.kdelnk" -print |
7 while read k; do
8 d=`echo $k|sed -e 's/\.kdelnk/\.desktop/'`
9 echo "Renaming $k to $d"
10 mv "$k" "$d"
11 done
13 # Convert user's bookmarks to .desktop and to remove .xpm from icons
14 find ~/.kde/share/apps/kfm/bookmarks -type f -print |
15 while read k; do
16 if echo $k | grep -q kdelnk; then # kdelnk file
17 d=`echo $k|sed -e 's/\.kdelnk/\.desktop/'`
18 echo "Renaming $k to $d"
19 else
20 d=$k
21 k=$d".tmp"
22 mv "$d" "$k"
24 sed -e 's/\.xpm//' "$k" > "$d"
25 rm -f "$k"
26 done