Summary: | Never index .cache or Trash folders even when hidden folder indexing is on | ||
---|---|---|---|
Product: | [Frameworks and Libraries] baloo-widgets | Reporter: | tagwerk19 |
Component: | general | Assignee: | Stefan BrĂ¼ns <stefan.bruens> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | kde-bugzilla, koma111, nate, odeda |
Priority: | NOR | Keywords: | usability |
Version First Reported In: | 20.12.3 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=483578 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
tagwerk19
2021-03-21 08:57:56 UTC
That's pretty sane, yeah. Not sure we would want to explicitly add these in the UI, but they could just be automatically skipped in the code. Might also suggest adding .local/share/baloo exclude folders[$e]=$HOME/.cache/,$HOME/.local/share/Trash/,$HOME/.local/share/baloo/ so avoid seeing Bug 435024 exclude folders[$e]=$HOME/.cache/,$HOME/.local/share/Trash/ I tried that. Baloo is still indexing the excluded folders. (In reply to sourcemaker from comment #3) > Baloo is still indexing the excluded folders. Which version are you using? I know there were changes in the last months related to 'hidden folders' (Bug 431588, fixed in 5.79) baloo 5.81.0 Looking at a system with 5.81.0. My .config/baloofilerc includes the lines: exclude folders[$e]=$HOME/.cache/,$HOME/.local/share/Trash/,$HOME/.local/share/baloo/ folders[$e]=$HOME/ index hidden folders=true If I run "balooctl monitor" and then do a "balooctl purge" in another window, I get a stream of files (including files in hidden directories) excluding ~/.cache, ~/.local/share/Trash/, ~/.local/share/baloo/ The only think I can think of to check is whether $HOME is correct (it doesn't, for example, have a trailing slash) try: echo $HOME/.cache/ and check that you do get: /home/username/.cache/ exclude folders[$e]=$HOME/.cache/,$HOME/.local/share/Trash/,$HOME/.local/share/baloo/ folders[$e]=$HOME index hidden folders=true balooctl monitor: Indexing: /home/sourcemaker/.cache/icon-cache.kcache Indexing file content Indexing: /home/sourcemaker/.cache/mozilla/firefox/ Also index file content is enabled. I'm running out of suggestions, on the basis that we are both running 5.81.0 and you see an issue and I don't... Maybe create a new user and check whether you see the same behaviour Check whether you've got a "half-installed" system, that your baloo is not all at the 5.81.0 version (and there's no chance that you've updated and not rebooted?) With "Neon User", when I run: $ apt list --installed | grep baloo I get: baloo-kf5/focal,now 5.81.0-0xneon+20.04+focal+release+build23 amd64 [installed,automatic] libkf5baloo5/focal,now 5.81.0-0xneon+20.04+focal+release+build23 amd64 [installed,automatic] libkf5balooengine5/focal,now 5.81.0-0xneon+20.04+focal+release+build23 amd64 [installed,automatic] libkf5baloowidgets-bin/focal,now 4:21.04.0-0xneon+20.04+focal+release+build16 amd64 [installed,automatic] libkf5baloowidgets5/focal,now 4:21.04.0-0xneon+20.04+focal+release+build16 amd64 [installed,automatic] All packages are up to date. Same behavior with new user. Sorry, I'm out of ideas. I tried setting up a clean Neon install (as a KVM guest), neon-user-20210429-0945.iso, and cannot get it to fail. If you know strace you might be able to use it to see what's happening. Maybe also try not indexing $HOME but adding a "hidden folder" as indexed rather than not indexed. (In reply to tagwerk19 from comment #2) > Might also suggest adding .local/share/baloo Also add .directory to the "exclude filters" list to avoid indexing Dolphin's per directory config. Ref: Bug 437197 *** Bug 448539 has been marked as a duplicate of this bug. *** Elsewhere, referenced in https://bugs.kde.org/show_bug.cgi?id=438074#c5 but also discussed as the per-user flatpak install directory, maybe exclude the $HOME/.var/app folder |