SETUP: In my home directory there is a tmp folder (~/tmp). ACTION: When I paste the existing path "~/tmp" (without the quotes) to the address bar and hit Enter, dolphin navigates to the address. Which is fine. When I paste a non-existing path "~/tmp/nonext" (without the quotes) to the address bar and hit Enter, dolphin shows the "Invalid protocol" message. This is confusing because it only happens when the path is prefixed with the tilde. EXPECTED: Dolphin should show the "The file or folder ... does not exist." message as it does when the non-existing path "/home/g/tmp/nonext" (without tilde) is entered.
Hi Gregor, I can reproduce but I think the bug might be in KIO
The bug lies in KUrlNavigator. While KUrlCompletion in the combobox does tilde expansion, the uncomittedUrl() which is used when pressing enter does not. This results in an invalid URL ending up in Dolphin which rightfully complains. Re-assigning to KIO. One could slam a KShell::tildeExpand in there somewhere but I have no idea how KUriFilter works and when to do that, ie. before filterUri or afterwards.
Possible fix: https://phabricator.kde.org/D9217
https://commits.kde.org/kio/f3bb9edbf5b35c4a34c606c2027f03270fc332dc