[Patch] KUrl::prettyUrl and xmpp: url

Olivier Goffart ogoffart at kde.org
Tue Oct 9 00:57:41 BST 2007


Le lundi 8 octobre 2007, David Faure a écrit :

> > BTW: Another use case (apart from krun) for that would be drag&drop into
> > konsole - I keep removing file:// prefixes there..
>
> I fail to see why pathOrUrl (with the call to prettyUrl) wouldn't be OK for
> e.g. konsole. The pasted url will obviously appear to the user, so better
> prettyUrl() than url() (less ugly, and no password being exposed to the
> user passing by).
>
> KRun should use if (local) then path() else url(). It's a special case
> (because of the compat with non-kde apps which want a path for local files
> instead of a url), that doesn't need a new KUrl method.

Ok, I have committed that.


About d&d to konsole, I think this make sens to have the same: 
url() is encoded with %20 instead of '\ ' ,  and if one URL contains a 
password, it should be passed to Konsole.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071009/6b3db187/attachment.sig>


More information about the kde-core-devel mailing list