diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
commit | 38fde63f74091af1f6a0d485474769bb6b4f17ce (patch) | |
tree | 1317a1fa2ef61c710ff5c653f43c0af8bb164ca6 /debian/patches/xdg-gvfs-open | |
download | pypy-debian.tar.gz |
Import pypy (7.2.0+dfsg-1)debian/7.2.0+dfsg-1debian
Diffstat (limited to 'debian/patches/xdg-gvfs-open')
-rw-r--r-- | debian/patches/xdg-gvfs-open | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/xdg-gvfs-open b/debian/patches/xdg-gvfs-open new file mode 100644 index 0000000..a2e9dc8 --- /dev/null +++ b/debian/patches/xdg-gvfs-open @@ -0,0 +1,31 @@ +From: Stefano Rivera <stefanor@debian.org> +Date: Sat, 7 Oct 2017 09:38:58 +0200 +Subject: Use xdg-open/gvfs-open in webbrowser + +Bug-cpython: http://bugs.python.org/issue14493 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/971311 +Origin: cpython, http://hg.python.org/cpython/rev/70c58903b52e +Author: Michael Vogt <michael.vogt@ubuntu.com> +--- + lib-python/2.7/webbrowser.py | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/lib-python/2.7/webbrowser.py b/lib-python/2.7/webbrowser.py +index 2389179..645b3e1 100755 +--- a/lib-python/2.7/webbrowser.py ++++ b/lib-python/2.7/webbrowser.py +@@ -453,6 +453,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")) ++ + # use xdg-open if around + if _iscommand("xdg-open"): + register("xdg-open", None, BackgroundBrowser("xdg-open")) |