Summary: | Baloo does not exclude folders correctly if $HOME has a trailing slash | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | Oded Arbel <oded> |
Component: | general | Assignee: | Stefan BrĂ¼ns <stefan.bruens> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate, tagwerk19 |
Priority: | NOR | ||
Version: | 5.80.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/baloo/commit/7b0cab3aa4b1c8b1eb6a393c2226630923998da5 | Version Fixed In: | 5.82 |
Description
Oded Arbel
2021-03-25 07:21:19 UTC
Can confirm... Interesting. I'll investigate. (In reply to Nate Graham from comment #2) > Interesting. I'll investigate. This change solved the problem for me: https://invent.kde.org/frameworks/baloo/-/merge_requests/43 Oh nice! An alternative or supplemental solution might be to sanitize the input paths entered using the KCM, which lives in plasma-desktop. (In reply to Nate Graham from comment #4) > Oh nice! > > An alternative or supplemental solution might be to sanitize the input paths > entered using the KCM, which lives in plasma-desktop. That wouldn't work as an alternative in this case as the KCM sets up the paths using $HOME/ (and I think that's correct) so in my case KCM would still cause the config file to contain the double slash. That code change, does cause the KCM to display the configured paths as "~//folder name", which is a bit weird, so some modification there might also be in order - I'll take a look. Git commit 7b0cab3aa4b1c8b1eb6a393c2226630923998da5 by Oded Arbel. Committed on 21/04/2021 at 07:45. Pushed by ngraham into branch 'master'. When adding a folder to configuration, normalize the path semantically The folder path is later used in string matches so it must be normalized by removing double directory sepearators, up dir and other valid Unix directory spec parts that are valid but confuse `canBeSearched()`. M +1 -1 src/file/fileindexerconfig.cpp https://invent.kde.org/frameworks/baloo/commit/7b0cab3aa4b1c8b1eb6a393c2226630923998da5 |