Bug 292959 - Konsole opens file manager when asked to link to URL
Summary: Konsole opens file manager when asked to link to URL
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.8.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 12:43 UTC by Philip Webb
Modified: 2018-11-09 03:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Webb 2012-01-31 12:43:16 UTC
Version:           2.8 (using KDE 4.8.0) 
OS:                Linux

If an URL occurs in text opened from Konsole (eg using Most), a right-click opens a menu of options; if you click 'open link', the URL should be opened in a running browser or open a new browser instance (eg Konqueror or Firefox).  Until somewhere around 4.7.1 that process used to open Konqueror at the URL, but since at least 4.7.1 it has opened Konqueror in file-browser mode (Kfm).  The problem is solved by adding a line 'BrowserApplication[$e]=!firefox' to kdeglobals, which was previously missing.  Presumably the hardwired default is to open Kfm, which cannot be correct.

Also, I cannot set the browser via Systemsettings, as the menu 'Workspace A+B' doesn't have an item 'Default Applications'.  This is probably because I don't have the full KDE desktop installed, only those apps which I use with Fluxbox.

Properly, the default browser should be able to be set via a profile configuration in Konsole's own menu: users might want a different browser for each profile & anyway it's more straightforward & where users will look first.

Reproducible: Always

Steps to Reproduce:
In a text app running from Konsole find an URL, right-click on it & select 'open link' from the menu.

Actual Results:  
Konqueror opens in file-manager mode.

Expected Results:  
Konqueror (or another chosen browser) should open in Internet browser mode.

There are 2 issues : (1) the default in recent Konsoles is clearly wrong ;
(2) it should be possible to define a chosen browser within Konsole's menus,
best via a profile menu.
Comment 1 Jekyll Wu 2012-01-31 13:40:46 UTC
Thanks for reporting.

However, I don't have the reported problem using a clean account in KDE SC 4.8. Even if the problem does exist, it is hardly a problem of Konsole, because the code related with the "open link" action is essentially just one line:

    new KRun(url, QApplication::activeWindow());

As for the suggestion of adding the option for default browser into Konsole profiles, I don't think that's a good idea or necessary. Konsole is part of KDE SC, so the most logical behavior is following KDE-wide configuration.

I'm reassigning this report to Konqueror developers, since I guess they have better idea of the reported problem.
Comment 2 Philip Webb 2012-01-31 18:21:55 UTC
Following your advice, I agree the bug should be directed to Konqueror or Systemsettings developers.  There remain 2 slightly different problems:
(1) the default setting for browser is clearly wrong: it should not be the file-manager version of Konqueror (Kfm), but the browser version: I have never used Konqueror as a file manager, so my actions should not have caused this.
(2) the Default Applications line is missing from my Systemsettings (as above).
The latter may be due to the fact that I don't use the KDE desktop, only some applications like Konsole: which item in the KDE SC handles the setting of default applications ?
Comment 3 Andrew Crouthamel 2018-11-09 00:58:32 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Philip Webb 2018-11-09 02:06:00 UTC
I don't believe this is a problem today with KDE 5
& I no longer have Konqueror installed, so by all means close it.
Comment 5 Andrew Crouthamel 2018-11-09 03:38:56 UTC
Thanks for the update!