Port locations runner away from deprecated methods & cleanup
- Do not use deprecated RunnerContext::type()
- Write the url always in the data, this way we don't need to do all the parsing twice.
- The concept of the case insensitive search does not make sense in this runner. If the user want to have case insensitive file search the baloo/recent docs/places runners should be used.
- Do not show a match when we are sure the file does not exist. This would only show a KIO error message when launching it, consequently there is no point in showing the message in the first place.
Test Plan (should still work):
- ~/foo
- $HOME/foo
- mailto:somebody@kde.org
- vnc:/foo
- ssh://localhost
- http://www.example.com
- example.com
- file:///home/user/kde/
- \server\path
Does not produce results anymore:
- file:///home/user/doesnotexist
- ~/doesnotexist
- $HOME/doesnotexist
The second commit fixes https://bugs.kde.org/show_bug.cgi?id=358221
Edited by Alexander Lohnau