Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20875

Re: webbrowser.open always opens up Safari on Lion

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'indeed,': 0.07; 'received:edu.au': 0.07; 'bug,': 0.09; 'settings,': 0.09; 'skip:f 30': 0.13; '11:36': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'sheer': 0.16; 'trains': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'documented': 0.23; 'opens': 0.23; 'shell': 0.24; 'cc:2**0': 0.26; '"the': 0.26; 'cc:addr:python.org': 0.29; 'url:library': 0.31; 'actually': 0.31; 'header:User-Agent:1': 0.33; 'steven': 0.34; 'url:python': 0.35; 'received:au': 0.36; 'two': 0.36; 'several': 0.38; 'think': 0.38; 'open': 0.38; 'url:org': 0.39; 'browser': 0.62; 'received:202': 0.66; 'charles': 0.67; 'become': 0.69; 'cameron': 0.77; 'why?': 0.77; 'drm': 0.84; 'law-abiding': 0.84; 'pirates': 0.84; 'subject:always': 0.84; 'subject:opens': 0.91; 'leo': 0.93
Date Sun, 26 Feb 2012 18:04:47 +1100
From Cameron Simpson <cs@zip.com.au>
To Leo <sdl.web@gmail.com>
Subject Re: webbrowser.open always opens up Safari on Lion
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
In-Reply-To <m1ipiuf6z4.fsf@gmail.com>
User-Agent Mutt/1.5.21 (2010-09-15)
References <m1ipiuf6z4.fsf@gmail.com>
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.168.1330240167.3037.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330240167 news.xs4all.nl 6891 [2001:888:2000:d::a6]:36976
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20875

Show key headers only | View raw


On 26Feb2012 14:23, Leo <sdl.web@gmail.com> wrote:
| On 2012-02-26 11:36 +0800, Steven D'Aprano wrote:
| > What part of this do you think is the bug, and why? What part of the 
| > behaviour actually experienced contradicts the documented behaviour of 
| > webbrowser.open()?
| >
| > http://docs.python.org/library/webbrowser.html
| 
| If you have the default browser set to Chrome, it still opens up Safari.

On the suppostion that "the default browser" is actually multiple
settings, one for each of several URL (URI?) schemes, what do these two
shell commands do for you? From a shell prompt in a Terminal:

  open file://localhost/nonexistingfile
and 
  open http://www.python.org/

Do they both open Chome for you?
-- 
Cameron Simpson <cs@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

DRM doesn't inconvenience pirates ¿ indeed, over time it trains
law-abiding users to become pirates out of sheer frustration.
- Charles Stross

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

webbrowser.open always opens up Safari on Lion Leo <sdl.web@gmail.com> - 2012-02-26 09:33 +0800
  Re: webbrowser.open always opens up Safari on Lion Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-26 03:36 +0000
    Re: webbrowser.open always opens up Safari on Lion Leo <sdl.web@gmail.com> - 2012-02-26 14:23 +0800
      Re: webbrowser.open always opens up Safari on Lion Cameron Simpson <cs@zip.com.au> - 2012-02-26 18:04 +1100
        Re: webbrowser.open always opens up Safari on Lion Leo <sdl.web@gmail.com> - 2012-02-26 15:29 +0800
      Re: webbrowser.open always opens up Safari on Lion Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-26 07:12 +0000

csiph-web