Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Alan Gauld
"Steve Willoughby" wrote Not perfect, but you could check for each browser's binary. import os os.path.isfile("/usr/bin/firefox") But then you have to know of all browsers and thats almost impossible. And what if the user has built their own browser - I've written at least 3 web browsers

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Steve Willoughby
On 01-Sep-10 13:10, Mark Weil wrote: Not perfect, but you could check for each browser's binary. import os os.path.isfile("/usr/bin/firefox") You'd probably be better off at least looking at the user's PATH variable, which would likely catch platform variations in where the browser would be

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Mark Weil
Not perfect, but you could check for each browser's binary. import os os.path.isfile("/usr/bin/firefox") ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Alan Gauld
"Nick Raptis" wrote Ooops! Sorry if I caused any confusion, I thought the goal was to print the default browser, not all of the installed ones. Silly me. Still, the "Preferred applications" tool seems to know that info (so to give you a choice) so it might be something to dig into. The prob

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Steven D'Aprano
On Wed, 1 Sep 2010 03:24:58 pm Ranjith Kumar wrote: > Hi all, > I`m using ubuntu how to find and print the installed web > browsers using python scripting. You already asked this question on the 9th of August, in an email titled "Need a mentor": 4) Lastly I need to know is how to print th

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Nick Raptis
On 09/01/2010 11:46 AM, Nick Raptis wrote: 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 mig

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Ranjith Kumar
On Wed, Sep 1, 2010 at 1:47 PM, Alan Gauld wrote: > "Ranjith Kumar" wrote > > > I`m using ubuntu how to find and print the installed web browsers using >> python scripting. >> > > How would you do it without Python scripting? > Is it even possible? > > And on a multiuser system like Linux wou

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Nick Raptis
On 09/01/2010 11:17 AM, Alan Gauld wrote: "Ranjith Kumar" wrote I`m using ubuntu how to find and print the installed web browsers using 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

Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Alan Gauld
"Ranjith Kumar" wrote I`m using ubuntu how to find and print the installed web browsers using 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 o

[Tutor] How to print the installed web browser

2010-08-31 Thread Ranjith Kumar
Hi all, I`m using ubuntu how to find and print the installed web browsers using python scripting. -- Cheers Ranjith, Software Engineer, Sedin Technologies, Chennai http://ranjith10z.wordpress.com http://ranjithtenz.wordpress.com ___ Tutor maillist