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 |
8 d
=`echo $k|sed -e 's/\.kdelnk/\.desktop/'`
9 echo "Renaming $k to $d"
13 # Convert user's bookmarks to .desktop and to remove .xpm from icons
14 find ~
/.kde
/share
/apps
/kfm
/bookmarks
-type f
-print |
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"
24 sed -e 's/\.xpm//' "$k" > "$d"