How to setup the default web browser in Kubuntu

Kubuntu is a Ubuntu derived distribution. The only difference between the two is that Kubuntu comes with a KDE desktop environment; while Ubuntu has Gnome. Its just a matter of preference which one you want to use. Anyways; since Kubuntu is KDE based; it comes with its own web browser called “Konqueror”. To be honest I did not give Konqueror that much time to win me over. I am a pretty avid Firefox user and it was one of the first applications I installed. The problem that I ran into was that all our KDE applications were still using Konqueror as their browser. For example; whenever I would click on MSN inbox from Kopete; it would open up in Konqueror. That was pretty annoying to me; so I went about fixing it.


Here is my trial/error approach to try to figure out what setting to change.

  1. The first place I looked was in Kopete itself. I went into ‘Settings->Configure’ but could not find any relevant option.
  2. Lets look at Firefox itself now. If you look under ‘Edit->Preferences’; there is an option called ‘Default Browser’. Hmm.. this looks like the place :) I asked ‘Firefox to check if it was the default browser’; but no such check came up. :(
  3. Lets go to the System settings and see if something shows up there. Go to ‘System Settings’ under the KDE menu. Once I got to the “System Settings”; it took me a while to see where to go next. Eventually; I found the relevant option under ‘KDE Components’. Go to ‘Default Applications’; and set up your web browser here. I chose Firefox; and saved the settings. However; this did not affect the earlier behavior. Kopete still launched Konqueror whenever I clicked on a http link. :(
  4. Ok; at this point I was getting frustrated. So I launched Konqueror itself to see if there was any option that I can change there to ‘unset’ it as the default browser. Go to ‘Settings->Configure Konqueror’. Next go to ‘file associations’. This is where it gets a little bit confusing. Look for ‘text’ in the list of file types and expand that. Once you expand it; chose ‘html’. Now you will see that ‘Konqueror’ is listed ‘before’ Firefox. So that was the culprit! I went ahead and moved Firefox up in the list and now Kopete launches Firefox. :)


Konqueror Settings

If you liked this guide; please digg it so others can find it also

Comments (20)

wokaMay 20th, 2006 at 2:22 pm

Many thanks for this helpful tip!

AnonymousMay 31st, 2006 at 6:30 am

Great tip fella! :)

GoldMay 31st, 2006 at 11:26 am

Dugg it. Cheers dude.

kolorJune 7th, 2006 at 3:22 am

many thanks, it was useful!

BruceJune 16th, 2006 at 10:26 am

If only it worked for me :(. t-bird still says it
cannot find the browser. So, I’ve set it with FireFox,
the control panel and K-Browser all to no avail.
But thanks tho.

DiogoJuly 2nd, 2006 at 5:43 pm

I had the same problem, but i just added firefox on the system settings as the default browser and it started to be default. I checked Konqueror settings and firefox is second choice for html files, but from kopete links go to firefox somehow. Have you inserted ‘/usr/bin/firefox’ when defining default web browser in the system settings?
Greets.

MaheshOctober 16th, 2006 at 9:10 am

Well, I tried both the above, but it looks like this seems to be a per-program setting. I was using Gaim, and saw that Gaim has a setting to open links in any browser of your choice! Damn, one other reason why Linux will not win over desktop users…

IanNovember 29th, 2006 at 3:47 am

Gnome apps such as thunderbird look for their defaults elsewhere.

Run the following:
sudo update-alternatives –config x-www-browser
and Thunderbird will open using whatever default browser you’ve set (using the above steps)

grajeaJanuary 26th, 2007 at 2:06 pm

It works form me. Thanks!!

[...] 1. Default web browser ayarlama [...]

[...] 6th, 2007 · No Comments O artigo que explica como fazê-lo merece um digg it. Veja como em português: Inicie o Konquerore vá para ‘Settings->Configure Konqueror’. Em seguida vá para ‘file associations’. Procure por ‘text’ na lista de ‘file types’ e expanda. Escolha ‘html’. Verá que ‘Konqueror’ está listado antes de Firefox. Mova Firefox para o topo! [...]

Pablonius MonkJuly 12th, 2007 at 6:21 am

Thanks so much for the clearly described process for default browser. I am enjoying Kopete (on Ubuntu & Kubuntu) a lot more now!

Dave MillerJuly 31st, 2007 at 8:54 am

Thank you!!

AndrewAugust 17th, 2007 at 11:54 am

Thanks a tonne my friend!

TeinoxJanuary 18th, 2008 at 7:12 am

Awesome… you helped me to do what I wanted to do in so short time!

Great! Thanks a lot!

KevinMarch 6th, 2008 at 1:01 pm

You are a Legend, thats been driving me nuts for ages!!!!

aranweApril 23rd, 2008 at 12:01 am

Great job man! problem solved

balgiorMay 7th, 2008 at 10:10 am

+1 thank you! :)

JoeMay 28th, 2008 at 12:45 pm

#3 worked for me, thanks!

Tarah M. WheelerAugust 26th, 2008 at 6:03 am

Hey, thanks! Worked for me…

Leave a comment

Your comment