Bug 362622 - baloo ignores "exclude folders[$e]=$HOME/"
Summary: baloo ignores "exclude folders[$e]=$HOME/"
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 12:52 UTC by abulak
Modified: 2020-03-20 18:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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