webrowser and linux (also os.execv)

From: Tim Newsham (newsham_at_lava.net)
Date: 06/11/04


Date: Thu, 10 Jun 2004 14:37:11 -1000


On redhat8 with Python 2.3.4:

    import webbrowser
    webbrowser.open("http://www.google.com/")

opens a browser (if not yet open) but fails to redirect it. Another
window of mine receives an error message:

    channel 4: open failed: connect failed: Connection refused

The browser is the stock Mozilla browser that came with the
system. The same command works flawlessly under windows.

Any idea where the problem lies? I would like to get this
working in short order if possible (I can rebuild the python
package if necessary).

Oh, on an unrelated note, the os.execv and os.execve functions
do not allow an empty argv to be passed in, even though the
underlying C/Unix primitives do. Although it is rare that
one would want to pass in an empty argv (with argc set to zero)
there are rare situations when this is desired. The fact
that python tries to protect the user from making a mistake
by limiting the flexibility of the API is a deficiency.

Tim N.



Relevant Pages

  • Re: IE6 doesnt open its own links, sends to another browser
    ... Did you run IE7alongside IE6 recently? ... > the URL in another browser (i.e. if the default browser is Opera, ... > opens in Opera). ... > browse to the link in either the original IE window or the new one. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Open new Internet Explorer window in a new process
    ... I do not want the new window ... So I use CoCreateInstance when creating a new browser ... but then I cannot sink DWebBrowserEvents2 (although maybe I ... it opens it in the same process as that running instance. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Opening a new browser
    ... "Sarah" said in news:62e801c42e48$46eb1130$a601280a@phx.gbl: ... What is the web page's URL in which you click a link (which opens ... another browser instance but which closes after 60 seconds)? ... use a script to close that window). ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Spyware/Malware
    ... we are getting Popup ads on the computer ... >> without any browser window being open first. ... >> and all of a sudden, IE opens to some ad. ...
    (microsoft.public.security)
  • Re: IE6 opening separate windows
    ... > I recently used IEREGFIX.EXE and now my browser opens a separate window ... I want the new window to replace the old one so ... that only one browser window is open on my screen at any one time. ... Go to the HiJackThis section on the forum list and click to open. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)