Home » Questions » Computers [ Ask a new question ]

KDE: how to detect default browser?

KDE: how to detect default browser?

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?

Asked by: Guest | Views: 191
Total answers/comments: 2
Guest [Entry]

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.
Guest [Entry]

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.