Bug 428105 - Can't find hidden files even when hidden files are set to be indexed
Summary: Can't find hidden files even when hidden files are set to be indexed
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.75.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-22 15:06 UTC by Victor
Modified: 2021-09-22 04:35 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A simple exemple of dolphin missing some files in my /home. In this example, it just found .bash_history file, but actually there is .bash_logout and .bashrc in the directory. (34.04 KB, image/png)
2020-10-22 15:06 UTC, Victor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2020-10-22 15:06:43 UTC
Created attachment 132641 [details]
A simple exemple of dolphin missing some files in my /home. In this example, it just found .bash_history file, but actually there is  .bash_logout and .bashrc in the directory.

SUMMARY
I've been using plasma for about 3 weeks and sometimes i needed to find configuration files in my /home directory.
I know that configuration files are usually hidden so i have already changed my search options in the system settings to it index hidden files and my dolphin is configured to show hidden files as well. When i search for some configuration files, dolphin simply can't find a great part of them, even if the files in fact exist in /home/USER folder or in sub-directories of it. In fact it can find usually one or two files with the name i asked, but it simply don't show all the possible files. In some folders, Dolphin can't find a thing, like in .cache folder, .config, etc. I obviously tried to click in another option in the results, like "File name", "Content"... But it doesn't works.
I'm using KDE Neon Unstable edition in wayland session, with BTRFS file system installed.

STEPS TO REPRODUCE
1. Change your indexing settings to the system be able find hidden files. Press ctrl + H (or alt + .) in Dolphin as well.
2. Search for some hidden file (the bug happens usually searching for a file/folder located inside .config, .dbus, .kde .cache... directories)
3. After following the steps, i think you probably will not be able find a several files

OBSERVED RESULT

Dolphin don't have success to find many files, may you can find a small set of them, but the results section will miss a lot.

EXPECTED RESULT

Show every possible file with the name i put in the search box, including files located inside hidden folders.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma
Linux: Kernel 5.4.0-52-generic
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.0
Comment 1 Justin Zobel 2020-10-23 03:50:24 UTC
```
~ > balooshow files ~/.bashrc 
files: Not a valid url or document id
/home/justin/.bashrc: No index information found

~ > balooshow files ~/.bash_history 
files: Not a valid url or document id
/home/justin/.bash_history: No index information found

~ > balooshow files ~/.bash_logout 
files: Not a valid url or document id
/home/justin/.bash_logout: No index information found

~ > balooctl config ls hidden
yes

~ > balooctl failed
All Files were indexed successfully

```

Looks like baloo is refusing to index them for some reason.
Comment 2 Nate Graham 2020-10-24 20:04:51 UTC
They aren't being indexed because they're hidden files, and the Baloo file indexing system doesn't index hidden files by default.

You can make it do so in System Settings > Search >File Search > Check "Index hidden files and folders"
Comment 3 Justin Zobel 2020-10-24 23:21:24 UTC
(In reply to Nate Graham from comment #2)
> They aren't being indexed because they're hidden files, and the Baloo file
> indexing system doesn't index hidden files by default.
> 
> You can make it do so in System Settings > Search >File Search > Check
> "Index hidden files and folders"

If you check our comments we've both got Index hidden files set to on.
Comment 4 Nate Graham 2020-10-25 00:44:59 UTC
Oh darn.

Well if Baloo still can't find them even with the command-line tool, it's baloo's fault. not Dolphin's. Moving.
Comment 5 Victor 2020-10-31 14:04:44 UTC
Edit: I've just installed KDE Neon User edition and the bug happens here as well.
Comment 6 soredake 2021-02-16 09:55:13 UTC
Any progress on this?
Comment 7 tagwerk19 2021-03-20 17:59:09 UTC
Where talking about files in hidden folders, see Bug 431588
Comment 8 tagwerk19 2021-03-21 07:53:52 UTC
Looking at this With Neon Testing...

    Dolphin : 20.12.3
    Plasma : 5.21.3
    Frameworks : 5.81.0
    Qt : 5.15.2

Make sure baloo is running and indexing the home directory, set 'index hidden files', check balooshow:

    balooshow -x ~/.bash_logout

    Internal Info
    Terms: $ 1 = Mplain Mtext T5 T8 X20-7 bash bin by clear console
    executed exits fi if increase leaving login logout privacy q screen
    shell shlvl the then to usr when x ~
    File Name Terms: Fbash Flogout
    XAttr Terms:
    lineCount: 7 

Try:

    baloosearch .bash

and check that Dolphin is showing hidden file and search there as well. That "works for me..."

However...

With the baloo settings as per Fedora that index the XDG folders and not the home directory:

    folders[$e]=$HOME/Documents/,$HOME/Music/,$HOME/Pictures/,$HOME/Videos/

If you search from 'Home' in Dolphin, it won't be baloo that gives you the results. In this instance I do not see the .bash files. Dolphin's "fall back" search seemingly does not find hidden files
Comment 9 soredake 2021-05-08 10:59:34 UTC
(In reply to tagwerk19 from comment #8)
> Looking at this With Neon Testing...
> 
>     Dolphin : 20.12.3
>     Plasma : 5.21.3
>     Frameworks : 5.81.0
>     Qt : 5.15.2
> 
> Make sure baloo is running and indexing the home directory, set 'index
> hidden files', check balooshow:
> 
>     balooshow -x ~/.bash_logout
> 
>     Internal Info
>     Terms: $ 1 = Mplain Mtext T5 T8 X20-7 bash bin by clear console
>     executed exits fi if increase leaving login logout privacy q screen
>     shell shlvl the then to usr when x ~
>     File Name Terms: Fbash Flogout
>     XAttr Terms:
>     lineCount: 7 
> 
> Try:
> 
>     baloosearch .bash
> 
> and check that Dolphin is showing hidden file and search there as well. That
> "works for me..."
> 
> However...
> 
> With the baloo settings as per Fedora that index the XDG folders and not the
> home directory:
> 
>     folders[$e]=$HOME/Documents/,$HOME/Music/,$HOME/Pictures/,$HOME/Videos/
> 
> If you search from 'Home' in Dolphin, it won't be baloo that gives you the
> results. In this instance I do not see the .bash files. Dolphin's "fall
> back" search seemingly does not find hidden files

In fresh fedora kde 34 installation there is $HOME in balloo folder to index.
Comment 10 tagwerk19 2021-05-09 09:38:07 UTC
(In reply to soredake from comment #9)
> In fresh fedora kde 34 installation there is $HOME in balloo folder to index.
What I see is... for a new user on a recently installed F34

To start with .config/baloofilerc does not include any
    exclude folders[$e]
    folders[$e]
the lines are not there. If I create a file in the home directory, it's not picked up by baloo.

In the System Settings -> Search, I see Home excluded and Documents, Music, Pictures and Videos included and with a change to these, the baloofilerc is updated.

I'm guessing there is a default baloo configuration somewhere else... interesting that we see different behaviours.
Comment 11 Stefan Brüns 2021-05-09 11:00:29 UTC
Until early 2021, indexing of hidden files was broken for several cases. If you still see errors on a current system, it is likely something else and should be reported in a different bug report.

Last time I checked Fedora patched the default configuration code of Baloo. So if this happens with a stock Fedora installation and can be fixed with reconfiguration, blame them.
Comment 12 tagwerk19 2021-08-23 16:26:33 UTC
I see this bug is still open...
... Is it still a bug?

For me, with Neon User and having index hidden files set, baloosearch .bash finds the four .bashxxxx files
Comment 13 Bug Janitor Service 2021-09-07 04:35:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2021-09-22 04:35:59 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!