mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Do not set Konquerer to be the default browser if $KDEDIR is set -- some
Linux distributions which provide both KDE and Gnome set this environment variable even if the user is not using KDE. We do *not* want to start Konquerer if KDE is not running unless the user actually tells us to!
This commit is contained in:
parent
8d3312f4d1
commit
3944a01713
1 changed files with 1 additions and 3 deletions
|
|
@ -196,9 +196,7 @@ if sys.platform[:3] == "win":
|
||||||
register("windows-default", WindowsDefault)
|
register("windows-default", WindowsDefault)
|
||||||
DEFAULT_BROWSER = "windows-default"
|
DEFAULT_BROWSER = "windows-default"
|
||||||
elif os.environ.get("DISPLAY"):
|
elif os.environ.get("DISPLAY"):
|
||||||
if os.environ.get("KDEDIR"):
|
if _iscommand("netscape"):
|
||||||
DEFAULT_BROWSER = "kfm"
|
|
||||||
elif _iscommand("netscape"):
|
|
||||||
DEFAULT_BROWSER = "netscape"
|
DEFAULT_BROWSER = "netscape"
|
||||||
|
|
||||||
# If the $BROWSER environment variable is set and true, let that be
|
# If the $BROWSER environment variable is set and true, let that be
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue