Summary: | [PATCH] Dolphin doesn't understand relative paths | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | tesfabpel |
Component: | URL navigator | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | claudius.ellsel, emmanuelpescosta099, frank78ac, kdelibs-bugs, nate |
Priority: | NOR | Keywords: | junior-jobs, usability |
Version: | 5.47.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Unspecified | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/61912633cfc7792b4a3e905ea601318d9e3e85d2 | Version Fixed In: | 5.78 |
Sentry Crash Report: | |||
Attachments: |
Invalid protocol error
Screenshot: weird path in the location bar Fix the handling of relative paths (Dolphin workaround) |
Description
tesfabpel
2013-05-12 06:26:44 UTC
Created attachment 79841 [details]
Invalid protocol error
Created attachment 79842 [details]
Screenshot: weird path in the location bar
Thanks for the bug report. I can confirm the problem. Created attachment 81323 [details]
Fix the handling of relative paths (Dolphin workaround)
I think this problem should be fixed within KUrlNavigator, so that the urlAboutToBeChanged(KUrl) and urlChanged(KUrl) signals always send absolute urls.
@Frank:
What do you think?
Thanks Emmanuel for the patch! I agree that fixing this in KUrlNavigator might be the best option. Then it would also work correctly in the "File Open" dialog. Would you like to formally submit your patch, Emmanuel? Git commit 61912633cfc7792b4a3e905ea601318d9e3e85d2 by David Faure, on behalf of Ahmad Samir. Committed on 12/12/2020 at 10:43. Pushed by dfaure into branch 'master'. KUrlNavigator: resolve relative dir paths When the current url is e.g. /path/to/foo/, and the user replaces all the text in the url box with "folder", which happens to be a dir in /path/to/foo/, upon pressing Enter, we resolve the text to /path/to/foo/folder; this seems more useful. Hide the new method, uncommittedUrlAsync(), in the d-pointer; the original method, ucommittedUrl(), doesn't seem to be used by any KDE code other than the KUrlNave unit tests, but that can still work if we make it a member of the Private class and make the unit test a friend... etc; the public uncommittedUrl() should probably be deprecated. Add a unit test. FIXED-IN: 5.78 M +48 -0 autotests/kurlnavigatortest.cpp M +2 -0 autotests/kurlnavigatortest.h M +55 -22 src/filewidgets/kurlnavigator.cpp https://invent.kde.org/frameworks/kio/commit/61912633cfc7792b4a3e905ea601318d9e3e85d2 Git commit 66360b63d8364991f0a6ec1d1f1c88882dbb708f by David Faure, on behalf of Ahmad Samir. Committed on 12/12/2020 at 10:43. Pushed by dfaure into branch 'master'. KUrlNavigator: make completions of relative paths work Call KUrlCompletion::setDir() when the current url changes, so that completions of paths relative to the current url work; otherwise the url box would always offer relative completions consisting of dirs under $HOME, even when the current url isn't $HOME. M +5 -0 src/filewidgets/kurlnavigator.cpp https://invent.kde.org/frameworks/kio/commit/66360b63d8364991f0a6ec1d1f1c88882dbb708f |