How do I change the default browser that konsole opens URLs with?

I have google-chrome set as my default web browser in Ubuntu and gnome applications. However, when using konsole, all links open in konqueror, and not google-chrome!

I’ve tried setting the default browser with: sudo update-alternatives --config 'x-www-browser'

This works for opening links in gnome-terminal, and other gnome programs… but not kde ones like konsole. Also, there appears to be no kcontrol program for accessing the kde settings.

Does anyone know a way to set the kde setting for this while still using gnome?

EDIT: From what I can tell, I’ve got all the related settings configured that I can think of…

grep 'chrome' ~/.local/share/applications/mimeapps.list


grep 'chrome' /usr/share/applications/defaults.list


And there are no references to konqueror:

grep -i 'konqueror' /usr/share/applications/defaults.list
grep -i 'konqueror' ~/.local/share/applications/mimeapps.list
grep -i 'kon' /usr/share/applications/defaults.list
grep -i 'kon' ~/.local/share/applications/mimeapps.list

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

I ran into this problem running konsole in Ubuntu/Unity. When everything else failed, I edited ~/.kde/share/config/kdeglobals:


Logout, login — bingo!

Solution 2

The problem with “default applications” nowadays is that different programs look for the defaults in different ways. What we can call the traditional approach is $BROWSER and mailcap files.

But, recently, many graphical programs have started relying on .desktop files, and there is a set of xdg-* tools devoted to manipulate and retrieve some of the defaults.


xdg-settings get default-web-browser

If this shows konqueror, then

xdg-settings set default-web-browser google-chrome.desktop

Should fix it, at least if the xdg-settings documentation is to be trusted.

Now, all that xdg-settings does is talking with the currently running desktop environment, so this should be GNOME, and it should be already set to google-chrome

Solution 3

This is the correct behavior of Konsole. It opens links in the KDE default browser. If no browser is specified, it will launch Konqueror. Since you could not find any mentioning of Konqueror in the configuration files, the latter is exactly your case.

To set your preferred browser do the following (I assume that your Konsole and Konqueror are from KDE4):

  • open KDE System Settings (e.g. by launching Kcontrol)
  • navigate to Default Applications (it must be somewhere under “Workspace Appearance”)
  • find the Web Browser section
  • write the [path and] name of your preferred browser

Hope this helps.

Solution 4

The right way for me to make this work in ubuntu 18.04 was to add


to ~/.config/kdeglobals as suggested here. After that you only need to start a new konsole.

Solution 5

You can easily do this using ‘Default Applications’. Simply search the name in the start menu to find the window.

Click to see the image

Solution 6

Check out this page:

There is a kde system default settings application. However, since your in gnome, check out this file:


In addition look in here:


Remove any references to konqueror.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply