]> granicus.if.org Git - python/commitdiff
Do not set Konquerer to be the default browser if $KDEDIR is set -- some
authorFred Drake <fdrake@acm.org>
Mon, 2 Oct 2000 03:40:51 +0000 (03:40 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 2 Oct 2000 03:40:51 +0000 (03:40 +0000)
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

index a8b0e8ba81b2c945c126e5b7e432031f43422d8d..da70e3b371fe530484068c3755402c03b68ee994 100644 (file)
@@ -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