For each file that I open, a .desktop file is created in ~/.kde/share/applnk, but never deleted.
How are you opening these files, precisely? (A "how to reproduce" is a bar minimum for a report of this sort usually.) Can you attach one of the generated .desktop files?
Clicking on a .jpg file in Dolphin adds this .desktop file: [Desktop Entry] Icon=image-jpeg Name=Bahr.jpg Type=Link URL[$e]=file://$HOME/Bahr.jpg X-KDE-LastOpenedWith=kv
can confirm the problem with git master
probably related with bug 323747
Can't reproduce the problem any after compiling kdelibs containing commit 13f0e65f8b0bbee8fa32d7634743026a518903c1. *** This bug has been marked as a duplicate of bug 323747 ***