From 3944a017130d8ec55493532ae071428768361583 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 2 Oct 2000 03:40:51 +0000 Subject: 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! --- Lib/webbrowser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index a8b0e8b..da70e3b 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -196,9 +196,7 @@ if sys.platform[:3] == "win": register("windows-default", WindowsDefault) DEFAULT_BROWSER = "windows-default" elif os.environ.get("DISPLAY"): - if os.environ.get("KDEDIR"): - DEFAULT_BROWSER = "kfm" - elif _iscommand("netscape"): + if _iscommand("netscape"): DEFAULT_BROWSER = "netscape" # If the $BROWSER environment variable is set and true, let that be -- cgit v0.12