diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-10 11:42:21 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-10 11:42:21 +0400 |
commit | 3fd7c70391fef9a1593b25a808766c352239e958 (patch) | |
tree | 8ed845aca8afc7bf489028a31db0fdf5ad6ce680 /python2.7/patches/xdg-gvfs-open.diff | |
parent | 92b26142a3d204fb1ce30f68ba1dfdd7f92a0b36 (diff) | |
download | cibs-pkgs-3fd7c70391fef9a1593b25a808766c352239e958.tar.gz |
Adapt Debian patches
Diffstat (limited to 'python2.7/patches/xdg-gvfs-open.diff')
-rw-r--r-- | python2.7/patches/xdg-gvfs-open.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python2.7/patches/xdg-gvfs-open.diff b/python2.7/patches/xdg-gvfs-open.diff new file mode 100644 index 0000000..7f6ec20 --- /dev/null +++ b/python2.7/patches/xdg-gvfs-open.diff @@ -0,0 +1,17 @@ +--- a/Lib/webbrowser.py ++++ b/Lib/webbrowser.py +@@ -441,6 +441,14 @@ + + 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")) |