Bug 390122 - Unable to open certain links from konsole with ctrl+click
Summary: Unable to open certain links from konsole with ctrl+click
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 16.12.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-09 03:10 UTC by Nicholas Devlin
Modified: 2018-02-14 04:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Config 1 set default browser doesn't work (255.52 KB, image/png)
2018-02-11 17:32 UTC, Nicholas Devlin
Details
Config 2 set file assocation doesn't work (282.43 KB, image/png)
2018-02-11 17:34 UTC, Nicholas Devlin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Devlin 2018-02-09 03:10:03 UTC
Action: click the link http://localhost:4200/ from Konsole

Expectation: the link opens in my default browser (Firefox quantum)

Actual Behavior: I get an error message 

Title: "Error - KIOExec"
Description: "A folder named /home/draav/.cache/kioexec/krun/5838_0/ already exists." 

I've also tried using Firefox ESR which came preinstalled with debian, same results.

I've tried several URLs, some have worked, some haven't.

doesn't work:
 - https://www.reddit.com/r/all/
 - https://www.google.com/
 - https://www.google.com

works: 
 - https://www.google.com/search?q=te&ie=utf-8&oe=utf-8&client=firefox-b-1-ab

however when the google search link worked it said this in the url bar:
file:///home/draav/.cache/kioexec/krun/6354_0/search

not the actual URL.

I really don't understand this at all and can't find any other mentions of this issue
Comment 1 Ahmad Samir 2018-02-11 10:11:32 UTC
This looks like a configuration issue rather than a konsole bug; You can try either of the following:
- open systemsettings -> applications -> default applications -> web browser and make sure it's set to use firefox, since that's the browser you want to use
- or set it to "in an application based on the contents of the url" and make sure text/html is set to open with firefox.
Comment 2 Nicholas Devlin 2018-02-11 17:32:46 UTC
Created attachment 110542 [details]
Config 1 set default browser doesn't work

I have already set my default browser as Firefox. I have already attempted both methods you gave with the same results.

config 1: open systemsettings -> applications -> default applications -> web browser and make sure it's set to use firefox, since that's the browser you want to use

I set it to Firefox quantum (or firefox esr) both get the popup error when trying to click https://www.google.com/
Comment 3 Nicholas Devlin 2018-02-11 17:34:14 UTC
Created attachment 110543 [details]
Config 2 set file assocation doesn't work

config 2: or set it to "in an application based on the contents of the url" and make sure text/html is set to open with firefox.

I have set the application type for .html to be both firefox quantum and firefox esr, both give same error when click on URLs
Comment 4 Nicholas Devlin 2018-02-11 17:45:16 UTC
I have attached two images showing that those configs don't work. I don't believ it is a config issue. I have also tried using different terminals, such as terminator, and this issue is not present, it just opens the urls when I ctrl+click on them.

So I still believe this is a bug
Comment 5 Ahmad Samir 2018-02-11 18:54:52 UTC
Konsole uses whatever default browser is set in the system, so it's a config issue.

I think you'll get better help fixing the issue by posting to the forums of your distro.
Comment 6 Nicholas Devlin 2018-02-11 18:58:49 UTC
I don't understand why it is a distro error, if it works for other terminals on my distro, but it doesn't work with konsole. but whatever, I will try to find a debian forum to ask on
Comment 7 Ahmad Samir 2018-02-11 19:33:45 UTC
It's because konsole is a KDE app so it uses KDE settings/config. The other terminal emulators may be using different MIME settings.
Comment 8 Kurt Hindenburg 2018-02-14 03:23:09 UTC
Reopen if you determine it is a Konsole bug.
Comment 9 Nicholas Devlin 2018-02-14 04:24:26 UTC
I've just tried installing chromium and setting it as default browser. The ctrl+click from konsole browser now works for all URLs not just some. I'll just use it as default browser until I have more time to look into this.

There must be some config on my end still that is prevent konsole from opening some URLs with firefox, that terminator does not need. I assume this is my fault or some setting missing with the firefox installs. 

I am willing to call this closed or give up or whatever it gets marked as. Thanks for looking into it