From 441ce4672d4aab14d1bef078692fec7ad4ff0c0a Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 3 Apr 2022 15:23:01 +0800 Subject: [PATCH] Don't touch WAYLAND_DISPLAY in browse-url * lisp/net/browse-url.el (browse-url): Don't touch WAYLAND_DISPLAY. (bug#53969) --- lisp/net/browse-url.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 776f774172f..4c348781a8c 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -851,7 +851,11 @@ If ARGS are omitted, the default is to pass ((featurep 'pgtk) (setq classname (pgtk-backend-display-class)) (if (equal classname "GdkWaylandDisplay") - (setenv "WAYLAND_DISPLAY" dpy) + (progn + ;; The `display' frame parameter is probably wrong. + ;; See bug#53969 for some context. + ;; (setenv "WAYLAND_DISPLAY" dpy) + ) (setenv "DISPLAY" dpy))) (t (setenv "DISPLAY" dpy))))) -- 2.39.5