Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2005, 09:59 PM
Jeremy Sanders
Guest
 
Posts: n/a
Default webbrowser.py

It occurs to me that webbrowser could be more intelligent on Linux/Unix
systems. Both Gnome and KDE have default web browsers, so one could use
their settings to choose the appropriate browser.

I haven't been able to find a freedesktop common standard for web browser,
however.

Firefox now sets itself as a "default browser" on startup, so python could
also look for a similar setting.

webbrowser could identify whether it was running under KDE/Gnome (maybe
scan the processes?), identify the correct desktop's browser (or just use
Gnome, maybe), and start that web browser.

Comments?

Jeremy

  #2  
Old July 18th, 2005, 10:35 PM
Timothy Babytch
Guest
 
Posts: n/a
Default Re: webbrowser.py

Jeremy Sanders wrote:[color=blue]
> It occurs to me that webbrowser could be more intelligent on Linux/Unix
> systems. Both Gnome and KDE have default web browsers, so one could use
> their settings to choose the appropriate browser.[/color]
[color=blue]
> I haven't been able to find a freedesktop common standard for web browser,
> however.[/color]
[color=blue]
> webbrowser could identify whether it was running under KDE/Gnome (maybe
> scan the processes?), identify the correct desktop's browser (or just use
> Gnome, maybe), and start that web browser.[/color]

I would not mind just using default GNOME's browser :)

to determine the one you will need python-gconf2 module and look for
gconf entry /desktop/gnome/applications/browser

The only bug here is that user MUST have python-gconf2 installed. Many
GNOMErs do not have it. but hey - one more dependancy.. Who cares? If
they istalled pyGTK :) - why it is wrong to ask for python-gconf2?
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles