Have KDE send URL to default browser, not tmp file

Kevin Krammer kevin.krammer at gmx.at
Fri Dec 24 17:59:37 GMT 2010


On Friday, 2010-12-24, Dotan Cohen wrote:
> When clicking links in KDE applications, KDE downloads the file in the
> URI to a tmp file, then passes that file to the browser. For example,
> try this:
> $ kde-open http://dotancohen.com
> 
> See that the address in the browser starts with file:///var/tmp/kdecache-*
> 
> Now, contrast with other options:
> $ gnome-open http://dotancohen.com
> $ python -mwebbrowser http://dotancohen.com
> 
> How can I get KDE apps to pass the URI to the web browser, instead of
> a tmp file? Thanks!

The program associated with text/html or set as web browser is probably 
missing the %u or %U parameter in its command.

Without knowing if the target application can handle URLs by itself, KDE 
assumes a safe fallback and passes the fetched content as a file.

By default the text/html is set to Konqueror with the following command:
kfmclient openURL %u text/html

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20101224/eea990a8/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list