[dolphin] [Bug 447119] Summary: Dolphin/Baloo search with symlinks

Méven <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=447119

--- Comment #43 from Méven <[email protected]> ---
Git commit a5c47cd8c3cf7d01fbc1a7f7e2e124381b18e67d by Méven Car, on behalf of
Archaeopteryx Lithographica.
Committed on 24/04/2025 at 13:04.
Pushed by meven into branch 'master'.

[Query] Canonicalise the working directory before starting search.

The existing code can fail after following a symlink in Dolphin and
searching "from there".

Test case is if you have a symlink in ~/Desktop pointing to ~/Documents.
If you follow the symlink, Dolphin will consider its working directory
~/Desktop/Documents.

Baloo does not follow symlinks when indexing (so indexes the canonical
names). Searching "from" a breadcrumb trail, ~/Desktop/Documents, will
not give any matches.

Canonicalise the working folder on entry to convert the breadcrumb trails
to actual folders.

This change has already been done for the command line balooctl and
the equivalent has been submitted for filenamesearch
(https://invent.kde.org/network/kio-extras/-/merge_requests/408)

M  +13   -3    src/kioworkers/search/kio_search.cpp

https://invent.kde.org/frameworks/baloo/-/commit/a5c47cd8c3cf7d01fbc1a7f7e2e124381b18e67d

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.