Bug 423901

Summary: balooctl automatically re-adds default dirs after deleting every item in the list
Product: [Frameworks and Libraries] frameworks-baloo Reporter: slartibart70
Component: balooctlAssignee: Stefan Brüns <stefan.bruens>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: luki.spuki, rdieter
Priority: NOR    
Version: 5.71.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description slartibart70 2020-07-05 13:05:54 UTC
i found something interesting happening when using balooctl...
Example:

balooctl config includeFolders ls

will show this on my system

/home/userName/Documents/
/home/userName/Pictures/
/home/userName/Videos/
/home/userName/Music/

I can remove those directories individually with, e.g.

balooctl config includeFolders rm /home/userName/Documents/

all is fine until i remove the last entry, then the next thing happening is that the list is filled again with those 4 entries mentioned above. For, me, this does not look like a sane default, especially when i try to override it...
Comment 1 Stefan Brüns 2020-07-05 16:42:07 UTC
Fedora patches baloo, blame them.
Comment 2 Rex Dieter 2020-07-05 21:31:37 UTC
That's a poor excuse, fedora simply defaults to document-centric XDG dirs, though the implementation may leave something to be desired.

At one time, kde/baloo upstream told me they'd likely move to this default too, but that was awhile ago.
Comment 3 Rex Dieter 2020-07-05 21:35:39 UTC
In particular, any suggestions on how to better improve the implementation is welcome,
https://src.fedoraproject.org/rpms/kf5-baloo/blob/master/f/baloo-5.67.0-baloofile_config.patch