A very similar bug has already been fixed some time ago: https://bugs.kde.org/show_bug.cgi?id=170608 That bug involved the location bar, but I guess the same patch could be applied to the bug that I'm now reporting. Reproducible: Always Steps to Reproduce: 1. Copy a file in Dolphin. 2. Paste in Kate or other program. Actual Results: What gets pasted is: file:///path/to/file Expected Results: What should be pasted instead is: /path/to/file
The bug is still there in latest KDE (latest Kubuntu weekly development iso).
Thanks for the bug report, I can reproduce the problem. This has to be fixed in Kate. I assume that: Mime data has a list of urls, Kate converts those urls to strings via QUrl::toDisplayString but without the QUrl::PreferLocalFile formatting option.
Actually, Kate/KWrite/Konsole/... just use QApplication::clipboard()->text(QClipboard::Clipboard) And I actually don't expect /../../ but to always get some fully qualified url. I am not sure how to change that, btw.
As Cristoph says, the problem occurs systemwide, not just in Kate.
I think even not, that this is a problem. You get a URL, which is fine, for many use cases you want the url. If you change that "somehow" to be a path for local things, other people will complain that they want a url. In any case, this is no bug in KTextEditor/Kate/KWrite.