Skip to content

Commit aed1ba5

Browse files
committed
bpo-43137: webbrowser: Don't run gvfs-open on GNOME
gvfs-open was deprecated in 2015 and removed in 2018. The replacement is gio(1) (as used in a previous commit). GNOME_DESKTOP_SESSION_ID was deprecated in 2008 and removed in 2018. The replacement is XDG_CURRENT_DESKTOP (as mentioned in a previous commit). Signed-off-by: Simon McVittie <[email protected]>
1 parent 251ea9c commit aed1ba5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/webbrowser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,6 @@ def register_X_browsers():
467467
if shutil.which("gio"):
468468
register("gio", None, BackgroundBrowser(["gio", "open", "--", "%s"]))
469469

470-
# Equivalent of gio open before 2015
471-
if "GNOME_DESKTOP_SESSION_ID" in os.environ and shutil.which("gvfs-open"):
472-
register("gvfs-open", None, BackgroundBrowser("gvfs-open"))
473-
474470
# The default KDE browser
475471
if "KDE_FULL_SESSION" in os.environ and shutil.which("kfmclient"):
476472
register("kfmclient", Konqueror, Konqueror("kfmclient"))

0 commit comments

Comments
 (0)