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

--- Comment #2 from Jin Liu <ad.liu....@gmail.com> ---
I've located the source of this bug, but I can't decide how to fix it.

There are two problems:
1. Solid::StorageAccess::filePath() returns `/\u0000` for encrypted root
partition. Should be fixed in
https://invent.kde.org/frameworks/solid/-/merge_requests/154

2. In KIO:
https://invent.kde.org/frameworks/kio/-/blob/287aa2ab7c3277b5d5033952569c38bb308a6154/src/kioworkers/trash/trashimpl.cpp#L1053
The query to Solid returns both the encryped root partition and the
devicemapper. And after the fix above, their filepath() should both resolve to
`/`. This doesn't really cause problems here, but is it intentional?

a) Should the
`Solid::Device::listFromQuery(QStringLiteral("StorageAccess.accessible ==
true"))` query, by design, return both devices?
b) If a) is true, then should KIO somehow explicitly filter out the encrypted
partition?

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

Reply via email to