[ python-Bugs-1624674 ] webbrowser.open_new() suggestion

SourceForge.net noreply at sourceforge.net
Wed Jan 17 22:25:29 CET 2007


Bugs item #1624674, was opened at 2006-12-30 00:03
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1624674&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Imre Péntek (imi1984)
>Assigned to: Georg Brandl (gbrandl)
Summary: webbrowser.open_new() suggestion

Initial Comment:
Hello,

under Linux if I use
webbrowser.open_new('...') a konqueror gets invoked. At the time when invoking konqueror (maybe you probe first, but anyways) you assume that user has a properly installed kde. But if you assume the user has a properly installed KDE you have a better opportunity to open a webpage, even in the browser preferred by the user -- no matter really what it is. Try this one:
kfmclient exec http://sourceforge.net/
using this one the client associated with .html in kcontrol gets invoked.
I suppose that (becouse of the ability to customize the browser) this way would be better if available than guessing which browser would the user prefer.


----------------------------------------------------------------------

Comment By: Mark Roberts (mark-roberts)
Date: 2007-01-14 23:08

Message:
Logged In: YES 
user_id=1591633
Originator: NO

A quick look at the code makes me think that it does try to run kfmclient
first.  Specifically, line 351 of webbrowser.py tries kfmclient, while like
line 363 of webbrowser.py opens konqueror.

I don't really run KDE, Gnome, or Windows, so I'm not a lot of help for
testing this for you.  I can, however, tell you that it does the "right
thing" for me, in that it opens Firefox.  When I did Python development on
Windows, it also "did the right thing" there.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1624674&group_id=5470


More information about the Python-bugs-list mailing list