[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#800502: Please just open urls in a browser



¡Hola Enrico!


El 2015-09-30 a las 10:46 +0200, Enrico Zini escribió:
Package: konsole Version: 4:15.08.1-1 Severity: important

when I click on a URL to open it, konsole does not just open it in a browser, but it seems to make a HEAD request for it, check its mime type, and then open it in the application associated with that mime type.

This is causing all sorts of problems:

- there is a lag before opening a URL - when I click on a URL, I have no way of knowing what is going to happen. Thankfully, clicking on http://ftp.us.debian.org/debian/pool/main/d/debtags/debtags_2.0.1_all.deb asks me what I want to open it with, instead of just trying to install it, and thankfully https://sso.debian.org/spkac/ca.pem does not import it automatically: those are the two first things that came to my mind.

konsole uses KRun, with the given url, KRun basically does the same action as xdg-open "url" would do, these actions are usually configurable as file associations, either in the file manager or in corresponding system settings. This part was already replied in other messages, but the other two were left unattended.

- I have seen an image url open in gimp, which cannot open URLs

KRun fetches a temporary file prior calling gimp, there is some logic to detect if this is needed, but I haven't checked it thoroughly, it seems to work fine for gimp now.

- occasionally, a URL is opened in an application that does not run in background, and konsole just freezed waiting for it to finish. All my open terminals were frozen.

Running ps on a completely different terminal I found this relevant process: /usr/lib/x86_64-linux-gnu/libexec/kf5/kioexec shutter %F https://scontent-lhr3-1.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/s720x720/12046782_622502334558707_4102355954418697241_n.jpg?oh=85a81b658f0f77abede441e203e903b9&oe=5695852A and killing it gave me my existing terminals back.

Here it seems that klauncher failed and KRun went on and tried to complete the action in the same main process, I'm not aware of this issue, but it seems that it's no longer reproducible. (At least testing this in a cinnamon vm, with only konsole, and kinit installed from the KDE world)

I would like konsole to just open links using /usr/bin/x-www-browser, or to have a configuration option for what browser to use to open links. I looked in "Configure Konsole" or "Edit current profile", and found no way of changing it.

In the konsole code there are two "urls" that are matched in the text, web links and emails. In both cases it calls KRun to use the "preferred" application. It could be added as an option to call a specific program for each type, I'm not sure if I support the idea completely, but it might be worth asking upstream. If possible, could you send the feature request upstream?

Happy hacking,
--
"If you can't write it down in English, you can't code it." -- Peter Halpern
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: PGP signature


Reply to: