Message48773
Logged In: YES
user_id=93910
The code to support Mac OS X is:
if sys.platform == 'darwin':
cmd = ['open']
etc.
While the commentary that webbrowser does it wrong is on
target, the proposed code resembles that more than one would
like. Both webbrowser and desktop poke around the system to
make a guess as to what application they should be using.
This is fine, so long as they guess right. The problems is
if they guess wrong. There's an OSS replacement for open on
the Mac, and just because a box isn't running GNOME or KDE
doesn't mean it's Windows, or doesn't have a file opener.
webbrowser allows for this by allowing the user to specify a
file opener in an environment variable. Gnome (or was it
KDE?) uses OPENER for that. I'd suggest supporting that. I
started to add support, then noticed that cmd was a list of
strings, and you can't really specify that in an environment
variable, so it needs to be encoded somehow. I'm going to
leave that to someone more interested in the problem.
<mike
|
|
Date |
User |
Action |
Args |
2007-08-23 15:44:00 | admin | link | issue1301512 messages |
2007-08-23 15:44:00 | admin | create | |
|