Summary: | Completion for path in $HOME works but fails on enter | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | gudvinr+kde |
Component: | bars: location | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | kfm-devel, tilrnz |
Priority: | NOR | ||
Version: | 23.04.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
gudvinr+kde
2023-06-09 21:43:23 UTC
I investigated this a bit, and it looks like the completion of directories in $HOME was never intended. Normally, the path in the editor is absolute and completion works. If you delete the prefix and it isn't anymore, things break: The component offering completion suggestions (KUrlCompletion) falls back to $HOME. The line editor itself (KUrlComboBox) tries to look for the entered path in the current working directory. If it can't find it there, it makes it into a QUrl, which in turn defaults to the http protocol. This also means typing in a path in the current working directory works, but isn't autocompleted. I'd rather have it working than not to have it at all tbh. But it's better to not have it at all than having it broken. |