<table><tr><td style="">dfaure added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8920" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Relative completions in KUrlCompletion defaults to $HOME but that can be configured with KUrlCompletion::setDir.<br />
Maybe KUrlNavigator should get a setter too, so that apps can set a base directory that makes sense to them?<br />
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.)</p>

<p>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 ;-)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8920" rel="noreferrer">https://phabricator.kde.org/D8920</a></div></div><br /><div><strong>To: </strong>emateli, Frameworks, dfaure<br /><strong>Cc: </strong>Frameworks<br /></div>