https://bugs.kde.org/show_bug.cgi?id=397242
Bug ID: 397242 Summary: Baloo gets confused when a file is renamed over existing one Product: frameworks-baloo Version: 5.48.0 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: major Priority: NOR Component: Baloo File Daemon Assignee: baloo-bugs-n...@kde.org Reporter: alexander....@gmail.com Target Milestone: --- Here is an example script to reproduce (has to be runned inside baloo indexed directory): ``` NAME=$(pwgen -N1); CONTENT=$(pwgen -N1) echo "$CONTENT" > "${NAME}"_1.txt echo "$CONTENT" > "${NAME}"_2.txt sleep 5 baloosearch "${CONTENT}" echo mv -v "${NAME}"_1.txt "${NAME}"_2.txt sleep 5 baloosearch "${CONTENT}" ``` The first baloosearch as expected finds files "${NAME}"_1.txt and "${NAME}"_2.txt But the second invocation (after "${NAME}"_1.txt is renamed to "${NAME}"_2.txt) finds "${NAME}"_2.txt twice!!! I believe this is the reason why a get tons of duplicates of zim notes in search results. Zim desktop wiki for robustness saves its notes in file $NOTE.txt.zim-new~ and then moves this file over $NOTE.txt. Also this obviously leads to unreasonably large index file etc etc -- You are receiving this mail because: You are watching all bug changes.