Bug 435802

Summary: Baloo does not index a recreated folder
Product: [Frameworks and Libraries] frameworks-baloo Reporter: tagwerk19
Component: Baloo File DaemonAssignee: Stefan BrĂ¼ns <stefan.bruens>
Status: REPORTED ---    
Severity: normal CC: baloo-bugs-null, goodaqua, nate
Priority: NOR    
Version First Reported In: 5.81.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tagwerk19 2021-04-16 08:15:27 UTC
SUMMARY

    If baloo is told to index a folder, it doesn't notice changes when
    the folder is deleted and recreated if the parent folder is not monitored.

STEPS TO REPRODUCE:

    Restrict indexing to one folder ~/Testdir, in .config/baloofilerc:

        exclude folders[$e]=$HOME/
        folders[$e]=$HOME/Testdir/ 

    Run

        balooctl monitor 

    in one window. Remove the folder

        rm -r ~/Testdir 

    and purge the index in a second:

        balooctl purge 

    Create the folder and a testfile:

        mkdir ~/Testdir
        echo "This is a testfile" > ~/Testdir/testfile.txt 

OBSERVED RESULTS

    Baloo does not see the folder being created (or the testfile being
    created in it)

    Needs a "balooctl check" before indexing testfile.txt

EXPECTED RESULTS

    Baloo should explicitly keep watch on folders mentioned in the
    "include" list.

    If the parent folder is watched, then changes would be picked up
    by iNotify. If the parent folder is not watched, an explicit check
    is most likely needed. 

SOFTWARE/OS VERSIONS

    Neon Testing

    Baloo : 5.81.0
    Plasma : 5.21.3
    Frameworks : 5.81.0
    Qt : 5.15.2

ADDITIONAL INFORMATION

    Admittedly a messy, maybe unusual, edge case...
Comment 1 reports_go_brrr 2024-09-23 18:20:46 UTC
Are you able to reproduce it? For me it is working now.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland