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?

  • From within a program or script? Or manually from the shell?
    – innaM
    Oct 19, 2009 at 16:26

3 Answers 3


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.


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

  • It appears that this line no longer exists in current versions of KDE/Plasma.
    – Fopedush
    Nov 14, 2018 at 16:23
  • It exists per user once you have done the configuration, see joe's answer below; otherwise see the system level configuration file /etc/xdg/kdeglobals.
    – daxim
    Nov 14, 2018 at 16:45
  • It turned out that the .kde folder is named .kde4 on my system. Guess I didn't look very hard. Thanks!
    – Fopedush
    Nov 15, 2018 at 19:56

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.

  • I am looking for a way to detect the default browser.
    – jldupont
    Oct 19, 2009 at 17:22
  • In my Kubuntu 11.04 it's in System settings -> Default Applications -> Web browser.
    – Adobe
    Aug 25, 2011 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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