Sunday 14 April 2019

linux - 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?



Answer



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.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...