Bug 435802 - Baloo does not index a recreated folder
Summary: Baloo does not index a recreated folder
Status: REPORTED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: 5.81.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 08:15 UTC by tagwerk19
Modified: 2024-09-23 18:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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