mirror of
https://github.com/python/cpython.git
synced 2025-01-21 07:55:16 +08:00
bpo-43137: Revert "webbrowser: Don't run gvfs-open on GNOME" (GH-30417)
gvfs-open was deprecated in 2015 and removed in 2018, but its replacement, gio(1), is not available in Ubuntu 16.04, which is apparently still supported by CPython upstream even though it is considered to be EOL by Ubuntu developers. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
332e6b9725
commit
dd50316e45
@ -467,6 +467,10 @@ def register_X_browsers():
|
||||
if shutil.which("gio"):
|
||||
register("gio", None, BackgroundBrowser(["gio", "open", "--", "%s"]))
|
||||
|
||||
# Equivalent of gio open before 2015
|
||||
if "GNOME_DESKTOP_SESSION_ID" in os.environ and shutil.which("gvfs-open"):
|
||||
register("gvfs-open", None, BackgroundBrowser("gvfs-open"))
|
||||
|
||||
# The default KDE browser
|
||||
if "KDE_FULL_SESSION" in os.environ and shutil.which("kfmclient"):
|
||||
register("kfmclient", Konqueror, Konqueror("kfmclient"))
|
||||
|
Loading…
Reference in New Issue
Block a user