Bug 467208 - Dolphin doesn't find files under hidden folders regardless of settings
Summary: Dolphin doesn't find files under hidden folders regardless of settings
Status: RESOLVED DUPLICATE of bug 391252
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 22.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-11 16:38 UTC by David
Modified: 2023-03-13 16:19 UTC (History)
3 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 David 2023-03-11 16:38:48 UTC
SUMMARY
If I configure dolphin to show hidden files and folders, and then search for the name of some file that's under a hidden folder, it will not show it under the search results.

STEPS TO REPRODUCE
1. Launch Dolphin.
2. Go to your user's home.
3. Press Alt+., or tick "Show hidden files" in the hamburger menu.
4. Press the search button.
5. Set it to search for a file name.
6. Search for "ksmserverrc" (it's under ~/.config)

OBSERVED RESULT
No results are found.

EXPECTED RESULT
Should find the file.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-6-amd64 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: SLIMBOOK
Product Name: Executive
ADDITIONAL INFORMATION
Comment 1 duha.bugs 2023-03-11 19:27:05 UTC
Can you run:
balooctl config list hidden
from the Terminal?

If the Output is "no" then this seems to be intended behavior (Works the same for me unless I index hidden files with baloo).
See: https://bugs.kde.org/show_bug.cgi?id=391252

Alternative solution is to use another search tool (Open Dolphin -> click the search icon -> More Search Tools).
Comment 2 David 2023-03-11 19:57:04 UTC
(In reply to duha.bugs from comment #1)
> Can you run:
> balooctl config list hidden
> from the Terminal?
> 
> If the Output is "no" then this seems to be intended behavior (Works the
> same for me unless I index hidden files with baloo).
> See: https://bugs.kde.org/show_bug.cgi?id=391252
> 
> Alternative solution is to use another search tool (Open Dolphin -> click
> the search icon -> More Search Tools).

Ok, seems the issue is on ballo. But tying it to dolphin like this is very unintuitive - as a user, I am not aware that I need to configure baloo differently in order to make dolphin show search results with similar settings, and it doesn't offer me to switch the backend from baloo to kfind, only to launch kfind.
Comment 3 duha.bugs 2023-03-11 22:40:16 UTC
(In reply to David from comment #2)
> (In reply to duha.bugs from comment #1)
> > Can you run:
> > balooctl config list hidden
> > from the Terminal?
> > 
> > If the Output is "no" then this seems to be intended behavior (Works the
> > same for me unless I index hidden files with baloo).
> > See: https://bugs.kde.org/show_bug.cgi?id=391252
> > 
> > Alternative solution is to use another search tool (Open Dolphin -> click
> > the search icon -> More Search Tools).
> 
> Ok, seems the issue is on ballo. But tying it to dolphin like this is very
> unintuitive - as a user, I am not aware that I need to configure baloo
> differently in order to make dolphin show search results with similar
> settings, and it doesn't offer me to switch the backend from baloo to kfind,
> only to launch kfind.

It seems to me you agree that its a duplicate bug. Ill mark it as duplicate for now (if not change it back). 

I agree its unexpected behavior. Ill try to add a feature request to fix this or talk to the Dolphin Dev's how to properly address this.

*** This bug has been marked as a duplicate of bug 391252 ***
Comment 4 tagwerk19 2023-03-13 16:19:57 UTC
(In reply to David from comment #0)
> SUMMARY
> If I configure dolphin to show hidden files and folders, and then search for
> the name of some file that's under a hidden folder, it will not show it
> under the search results.
Yes, alas, the choice of showing hidden files/folders in Dolphin is distinct and separate from the indexing done by baloo...

I general you need to enable baloo indexing to get "immediate results". You set the options in

    System Settings > Search > File Search

If you don't enable baloo indexing, Dolphin does the searches "itself". It's slower and behaves a little differently.

Ideally dolphin would give the same results independent of whether the folder is indexed by baloo or not (it should just be faster with baloo). There are wrinkles though, see Bug 463830.

In the context of this bug, if you have put a "testfile.txt" in the .config folder and...

    You have enabled baloo and configured it to index hidden files/folders:

        Then dolphin will find the file

    You have disabled baloo:

        Then dolphin's "there and then" search will not find the file

When changing the baloo configuration, you need to take care that dolphin is not still showing you 'older' cached results  :-/

If you decide to index hidden files and folders, it's probably sensible to explicitly exclude .trash and .cache (discussion in Bug 434705)