https://bugs.kde.org/show_bug.cgi?id=434919
Bug ID: 434919 Summary: Baloo does not exclude folders correctly if $HOME has a trailing slash Product: frameworks-baloo Version: 5.80.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: stefan.bru...@rwth-aachen.de Reporter: o...@geek.co.il CC: n...@kde.org Target Milestone: --- SUMMARY When $HOME is set with a trailing slash (something caused /etc/passwd to be set like that, not sure what, pretty sure it wasn't manual), the exclude folder list generated by the Baloo System Settings configuration module contains paths with double slash components: ----8<---- $ grep exclude\ folders ~/.config/baloofilerc exclude folders[$e]=$HOME/.cache/,$HOME/mnt/,$HOME/snap/ $ balooctl config show excludeFolders kf.baloo: Folder cache: std::vector("/home/odeda//.cache/": excluded, "/home/odeda//snap/": excluded, "/home/odeda//mnt/": excluded, "/home/odeda/": included) /home/odeda//.cache/ /home/odeda//snap/ /home/odeda//mnt/ ----8<---- When that happens, baloo ignores the exclude folders configuration and scans the excluded paths. STEPS TO REPRODUCE 1. Setup /etc/password with a slash at the end of your home directory, log out and back in 2. Use System Settings to remove all excluded folders and then add some back in 3. Wait for baloo to start indexing files OBSERVED RESULT Baloo indexes files in the excluded folders. EXPECTED RESULT Baloo should understand that `//` isn't referring to a directory with an empty name and should be canonicallized in the same way that coreutils' realpath does it, and not scan excluded folders. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.