[Tutor] How to print the installed web browser
airscorp at otenet.gr
Wed Sep 1 10:46:08 CEST 2010
On 09/01/2010 11:17 AM, Alan Gauld wrote:
> "Ranjith Kumar" <ranjithtenz at gmail.com> wrote
>> I`m using ubuntu how to find and print the installed web browsers
>> python scripting.
> How would you do it without Python scripting?
> Is it even possible?
> And on a multiuser system like Linux would you print out all the browsers
> installed for the current user or for all users?
Alan, let me make a wild guess here.
Ubuntu does have little "Preferred applications" config tool. I don't
know how or where it stores this data, but my guess is it's the same
place xdg (as in xdg-open) gets it's configuration from. This article
might help http://www.crystalorb.net/mikem/xdg-settings.html
Quote from above article (near the end): "...especially as there is
(currently) no single, portable, authoritative way for applications to
query the values of these settings..."
Ranjith, get ready for some configuration file parsing.
But if you just want to open a url with the default browser, you can
just execute "xdg-open your-url" as a subprocess.
Hope I shifted you to the right direction.
PS-trivia: I got to guess these just because I've read the source from
More information about the Tutor