Don't touch WAYLAND_DISPLAY in browse-url

* lisp/net/browse-url.el (browse-url): Don't touch
WAYLAND_DISPLAY.  (bug#53969)
This commit is contained in:
Po Lu 2022-04-03 15:23:01 +08:00
parent 35928918d1
commit 441ce4672d

View file

@ -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)))))