Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

x-scheme-handler/http=google-chrome.desktop;firefox.desktop;
x-scheme-handler/https=google-chrome.desktop;firefox.desktop;
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=google-chrome.desktop
application/x-extension-htm=google-chrome.desktop;firefox.desktop;
application/x-extension-html=google-chrome.desktop;firefox.desktop;
application/x-extension-shtml=google-chrome.desktop;firefox.desktop;
application/xhtml+xml=google-chrome.desktop;firefox.desktop;
application/x-extension-xhtml=google-chrome.desktop;firefox.desktop;
application/x-extension-xht=google-chrome.desktop;firefox.desktop;
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

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

text/html=firefox.desktop;google-chrome.desktop
text/xml=firefox.desktop;google-chrome.desktop
application/xhtml_xml=google-chrome.desktop
x-scheme-handler/http=firefox.desktop;google-chrome.desktop
x-scheme-handler/https=firefox.desktop;google-chrome.desktop
x-scheme-handler/ftp=google-chrome.desktop

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
share|improve this question
    
Try exporting BROWSER variable. export BROWSER=google-chrome –  Capt.Nemo Sep 20 '11 at 0:23
    
@Capt.Nemo : Hmm... still opens with Konqueror –  TrinitronX Sep 20 '11 at 19:59
    
I have the same problem with Debian Squeeze. –  muhuk Feb 15 '12 at 1:30

4 Answers 4

up vote 4 down vote accepted

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.

Try:

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...

share|improve this answer

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

[General]
BrowserApplication[$e]=!google-chrome

Logout, login -- bingo!

share|improve this answer
    
that works, thanks! –  rkj Oct 24 '13 at 2:44

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.

share|improve this answer
    
I'm using Gnome as my default desktop, but have installed Konsole & kdelibs. I can't find the kcontrol binary on my system, so it must not be installed. –  TrinitronX Feb 21 '13 at 16:58

Check out this page: http://userbase.kde.org/System_Settings/Default_Applications

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

/usr/share/applications/defaults.list

In addition look in here:

~/.local/share/applications/mimeapps.list

Remove any references to konqueror.

share|improve this answer
    
Hmm... very strange. I look in those files and I've got no references to konqueror at all. Instead, for all the html & xhtml related mimetypes, it's set to firefox & chrome. Note that I've tried with both "Konqueror" and the "Yakuake" terminal which appears to use Konsole underneath. @Jorge Castro: See my edited question above for the applicable settings I have in these files. –  TrinitronX Mar 14 '12 at 19:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.