Bug 362622

Summary: baloo ignores "exclude folders[$e]=$HOME/"
Product: [Frameworks and Libraries] frameworks-baloo Reporter: abulak <abulak>
Component: generalAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED FIXED    
Severity: normal CC: nate, oded, pinak.ahuja, smithjd15, stefan.bruens
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description abulak 2016-05-03 12:52:45 UTC
Since some time baloosearch spits almost only empty strings as results,
(I reported it somewhere here, was supposed to be fixed by 5.15, but weren't)
I tried adding $HOME to exclude folders but it turns out that this option is ignored.

cat ./.config/baloofilerc:
[Basic Settings]
Indexing-Enabled=true

[General]
dbVersion=2
exclude filters=*.nvram,CMakeTmp,confstat,CVS,*.loT,*.m4,config.status,.xsession-errors*,*.rcore,*.pc,lzo,litmain.sh,*.pyc,*.la,cmake_install.cmake,*.tmp,ui_*.h,CMakeTmpQmake,.git,*.class,Makefile.am,*.po,*.o,CMakeCache.txt,*.swap,.svn,*~,core-dumps,*.omf,.bzr,.hg,.pch,*.elc,*.lo,CTestTestfile.cmake,po,*.aux,*.moc,*.orig,.obj,_darcs,confdefs.h,__pycache__,*.part,*.rej,*.gmo,libtool,conftest,CMakeFiles,.uic,autom4te,moc_*.cpp,.moc,qrc_*.cpp,.histfile.*,*.vm*,*.csproj,lost+found
exclude filters version=2
exclude folders[$e]=$HOME/
first run=false
only basic indexing=true

Reproducible: Always

Steps to Reproduce:
1. balooctl disable
2. edit add home to exclude folders (in UI or directly to baloofilerc)
3. balooctl enable

Actual Results:  
(balooctl status)
Baloo File Indexer is running
Indexer state: Idle
Indexed 70373 / 70373 files
Current size of index is 39.93 MiB

Expected Results:  
most files have status: Scheduled;
some actually turn in the search results

kf-5.21
(the fact that in the bugzilla You can only select 5.20 is strange... 
does it mean that "kde is dying" ;-)??

this is i686, i.e. 32-bit installation. I have none of these problems on 64-bits installations I own
Comment 1 abulak 2016-05-03 12:55:04 UTC
damn:

Actual results:
(balooctl status) 
Baloo File Indexer is running 
Indexer state: 
Idle Indexed 70373 / 70373 files 
Current size of index is 39.93 MiB

most files have status: Scheduled; 
some actually turn in the search results

Expected Results: 
No files are indexed
Comment 2 Pinak Ahuja 2016-05-03 13:13:07 UTC
Hmm, this is weird. I'll have a look at it soon.
Comment 3 Nate Graham 2017-10-27 20:21:13 UTC

*** This bug has been marked as a duplicate of bug 362226 ***
Comment 4 Jamie Smith 2018-01-19 22:19:58 UTC
This is not really a duplicate because the reporter did disable indexing after changing the config. Reopening.
Comment 5 Nate Graham 2018-01-20 04:00:38 UTC
Thanks for the far better evaluation than I provided!
Comment 6 Stefan BrĂ¼ns 2020-03-20 18:11:55 UTC
Should be fixed in KF5.52 with https://phabricator.kde.org/D15939