D8920: Fixes url navigation with relative links on KUrlNavigator

David Faure noreply at phabricator.kde.org
Tue Nov 21 21:58:52 UTC 2017


dfaure added a comment.


  Relative completions in KUrlCompletion defaults to $HOME but that can be configured with KUrlCompletion::setDir.
  Maybe KUrlNavigator should get a setter too, so that apps can set a base directory that makes sense to them?
  They have more context for setting a correct base dir (e.g. an image app would set the Pictures dir, dolphin can set the currently viewed directory, etc.)
  
  Note: I am very much against using the working directory (as in QDir::currentPath()), because the concept of "working directory" makes little sense in most graphical applications (you don't see it, you can't change it...) and is just an artefact of how the application was launched. IMHO that's even worse than the home dir as base ;-)

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D8920

To: emateli, #frameworks, dfaure
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171121/c930f004/attachment.html>


More information about the Kde-frameworks-devel mailing list