"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
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
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
"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
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
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
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
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
"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
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
10 matches
Mail list logo