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?

link|improve this question

From within a program or script? Or manually from the shell? – innaM Oct 19 '09 at 16:26
feedback

3 Answers

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.

link|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
feedback

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

link|improve this answer
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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