- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.

This commit is contained in:
Matthias Klose 2012-04-04 14:19:04 +02:00
parent 597e6b4cc5
commit da80b1eb2f
2 changed files with 10 additions and 0 deletions

View File

@ -448,6 +448,14 @@ class Grail(BaseBrowser):
def register_X_browsers():
# use xdg-open if around
if _iscommand("xdg-open"):
register("xdg-open", None, BackgroundBrowser("xdg-open"))
# The default GNOME3 browser
if "GNOME_DESKTOP_SESSION_ID" in os.environ and _iscommand("gvfs-open"):
register("gvfs-open", None, BackgroundBrowser("gvfs-open"))
# The default GNOME browser
if "GNOME_DESKTOP_SESSION_ID" in os.environ and _iscommand("gnome-open"):
register("gnome-open", None, BackgroundBrowser("gnome-open"))

View File

@ -29,6 +29,8 @@ Library
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.
What's New in Python 3.3.0 Alpha 2?
===================================