Gustavo Niemeyer
1456fde6a0
Fixed bug
...
[#495695 ] webbrowser.py: selection of browser
* Lib/webbrowser.py
Only include graphic browsers in _tryorder if DISPLAY is set. Also,
included skipstone support, as suggested by Fred in the mentioned bug.
* Misc/NEWS
Mention fix and skipstone inclusion.
2002-11-25 17:25:04 +00:00
Neal Norwitz
520cdf733a
SF # 539360, webbrowser.py and konqueror, by Andy McKay
...
Fix Konqueror so it can start when calling open().
The assert needed to be on the raw URL, not openURL 'url...'
Will backport.
2002-10-11 22:04:22 +00:00
Neal Norwitz
8dd28eb973
SF # 585913, Adds Galeon support to webbrowser.py
2002-10-10 22:49:29 +00:00
Raymond Hettinger
10ff706e27
Replaced boolean tests with is None.
2002-06-02 03:04:52 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Jack Jansen
ff0a7b8ca2
If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed.
...
2.2.1 candidate.
2002-03-15 13:47:32 +00:00
Neal Norwitz
f963b45dfd
SF #515026 , delete global variable that was apparently used only
...
in a for loop.
2002-02-11 18:11:09 +00:00
Fred Drake
925f144274
Fix webbrowser.py security bug: be more careful about what we pass to
...
os.system().
This closes Python bug #500401 , Debian bug #127507 .
2002-01-07 15:29:01 +00:00
Guido van Rossum
4b402f2074
Address SF patch #485789 (Stefan Schwarzer).
...
$BROWSER should be split on os.pathsep, not on ":".
2001-12-04 17:43:22 +00:00
Guido van Rossum
cb33165ca2
_tryorder should always be a list, then the problem Jack had to fix in
...
1.24 wouldn't have occurred in the first place.
Remove a debug print command accidentally inserted by Martin in 1.23.
2001-12-03 15:51:31 +00:00
Jack Jansen
55c5abb52f
Missing comma in tuple initializer caused webbrowser.open() not to work at
...
all in MacPython. (why did noone ever notice this?)
2001-12-03 15:44:17 +00:00
Martin v. Löwis
3a89b2b131
Patch #484847 : Default to netscape.exe on OS/2.
2001-11-25 14:35:58 +00:00
Fred Drake
16623fe3e6
_os should be os; reported by Neal Norwitz.
2001-10-13 16:00:52 +00:00
Andrew M. Kuchling
118aa5337c
Fix malformed line (PyChecker)
2001-08-13 14:37:23 +00:00
Fred Drake
3f8f1643c8
Remove some false comments.
...
Reorganize so the initialization sequences does not bite us in the foot.
(There is no good reason to discard classes that clients may want to
subclass.)
2001-07-19 03:46:26 +00:00
Skip Montanaro
cdab3bf7eb
If the user's environment has set the BROWSER environment variable (as Gnome
...
seems to do), the user may not be aware of its contents. Attempt to add any
to _browsers.
closes bug #429136
2001-07-18 20:03:32 +00:00
Fred Drake
f4e5bd9df5
_synthesize(): Helper function: when the users passes a specific
...
value for the 'using' parameter of the get() function
or the BROWSER environment variable, if the thing
passed in is a path (as seems to be the case with KDE)
instead of a short name, examine the available
controllers to see if we can synthesize one based on a
pre-registered controller that shares the same base
name.
get(): If the user specifies a browser we don't know about, use
_synthesize() to attempt to create a usable controller.
Some small adjustments were needed in some of the browser classes to
support this.
2001-04-12 22:07:27 +00:00
Eric S. Raymond
f7eb4faf38
Fixes a fatal bug when the module has computed alternatives containing %s.
2001-03-31 01:50:52 +00:00
Fred Drake
fc31f2692f
Update auto-detection for Konqueror to include KDE 2 -- the kfm command is
...
gone; "konqueror" is the new name, and the command-line args are different.
kfmclient has not changed, though.
2001-03-26 15:06:15 +00:00
Ka-Ping Yee
0a8c29be4b
Clarify synopsis line a bit.
...
Remove -no-about-splash option (not understood by all Netscapes).
2001-03-02 02:01:40 +00:00
Skip Montanaro
40fc16059f
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
...
giving it a slight facelift
2001-03-01 04:27:19 +00:00
Tim Peters
85ba673b0a
Whitespace normalization.
2001-02-28 08:26:44 +00:00
Jeremy Hylton
8016a4b0af
Remove two meaningless, module-level global statements (one of a
...
non-existent variable :-).
Reflow long lines.
2001-02-27 18:44:14 +00:00
Tim Peters
658cba6706
Whitespace normalization.
2001-02-09 20:06:00 +00:00