Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does one detect/get the default browser on KDE? I know that on Gnome one can use "gconftool-2 -g /desktop/gnome/url-handlers/http/command" but what about KDE?

share|improve this question
From within a program or script? Or manually from the shell? – innaM Oct 19 '09 at 16:26
up vote 2 down vote accepted

There is a python script called webbrowser available which is a general purpose browser interface. It includes a 'get' function which returns a controller to the default browser, which I think you could convert into a test appropriate for whatever it is you're trying to do.

share|improve this answer
Way Cool! Thanks! – jldupont Oct 19 '09 at 18:46
Glad to be of service ;-) – DaveParillo Oct 19 '09 at 19:02

file ~/.kde/share/config/kdeglobals, section [General], line BrowserApplication

share|improve this answer

Choose the KMenu-> Control Center -> KDE Components -> Component Chooser -> web browser. It should show the present default browser and allow you to change it if you wish.

share|improve this answer
I am looking for a way to detect the default browser. – jldupont Oct 19 '09 at 17:22
In my Kubuntu 11.04 it's in System settings -> Default Applications -> Web browser. – Adobe Aug 25 '11 at 6:59

Your Answer


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.