Bug 488845

Summary: Attempting to search for files using "From Here (folder)" errors with "kf.baloo: Failed to add exclude folder config entry for /home/username"
Product: [Applications] dolphin Reporter: Eamonn Rea <eamonnrea>
Component: searchAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 24.05.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eamonn Rea 2024-06-20 22:50:46 UTC
SUMMARY
When pressing Ctrl+F to activate the search functionality in Dolphin, running via shell shows that when trying to search using the "From Here (folder)" option (where "folder" is the current folder), it shows an error with "kf.baloo: Failed to add exclude folder config entry for /home/username".

Using the "Your files" option can find the files no problem, although it takes a long time.

I checked the File Indexer which I believe uses Baloo, and I can see my home folder listed there twice: One as "indexed" and the other as "not indexed". It's the exact same path, "/home/username". The trash icon to delete the entry is greyed out. Perhaps this conflict of enabled and disabled indexing is causing the problem?

This functionality works fine on a brand new laptop, but not on my PC which has had this Arch installation for a number of years. As far as I can remember, it never worked on my PC, but I am only getting around to reporting it now when I happened to notice by accident that it works on my laptop.

Note: KFind works without issue, and it's how I've been working around this problem for the last while, before I got the laptop and noticed Dolphin's Find works fine there.

STEPS TO REPRODUCE
1. Open Dolphin
2. Press Ctrl+F to open the Find toolbar
3. Select the "From Here" tab
4. Search for a file
5. Perhaps specific to my PC, the results won't show up.

OBSERVED RESULT
"From Here" does not show files any files on my PC and fails immediately.

EXPECTED RESULT
"From Here" should work as it does on at least one other installation of Plasma 6.1.0

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.5 Linux Zen
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION