https://bugs.kde.org/show_bug.cgi?id=417762

            Bug ID: 417762
           Summary: Setting exclude folders under HOME do not work
           Product: systemsettings
           Version: 5.18.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_baloo
          Assignee: baloo-bugs-n...@kde.org
          Reporter: k...@mockies.de
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
Setting exclude folders does not work because "$HOME" already contains a
trailing slash, resulting in double slashes. Files in excluded folders will be
indexed.

STEPS TO REPRODUCE
1. add a folder to exclude list via systemsettings, e.g. "tmp"

OBSERVED RESULT
Entry in baloofilerc "exclude folders[$e]=$HOME/tmp/" is created. "balooctl
config show excludeFolders" will show that this is evaluated to

/home/user//tmp/

(note the double "/" after HOME)
This is because "$HOME" already contains a trailing slash

Baloo will index files in ~/tmp

Manually changing the option in baloofilerc to "exclude
folders[$e]=${HOME}tmp/" works as expected.


EXPECTED RESULT
Baloo should not index files in ~/tmp, the entry should be 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to