A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005730.html below:

[Python-Dev] webbrowser module

[Python-Dev] webbrowser moduleFred L. Drake, Jr. fdrake@beopen.com
Fri, 7 Jul 2000 13:05:09 -0400 (EDT)
Skip Montanaro writes:
 > I'm running kde.  From bash I see an environment variable named KDEDIR whose
 > value is "/usr".  Would that be a possible extra test to assure that kde is
 > running before deciding to launch kfm?

  Sounds good!  How about this for the non-MacOS portion of the
default-browser determination:

DEFAULT_BROWSER = "command-line"

if sys.platform[:3] == "win":
    del _browsers["kfm"]
    register("windows-default", WindowsDefault)
    DEFAULT_BROWSER = "windows-default"
elif os.environ.get("DISPLAY"):
    if os.environ.get("KDEDIR"):
        DEFAULT_BROWSER = "kfm"
    elif _iscommand("netscape"):
        DEFAULT_BROWSER = "netscape"



  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at beopen.com>
BeOpen PythonLabs Team Member




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4