bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54333: 29.0.50; browse-url-chrome in Wayland/pgtk


From: Stephen Eglen
Subject: bug#54333: 29.0.50; browse-url-chrome in Wayland/pgtk
Date: Fri, 11 Mar 2022 08:30:48 +0000
User-agent: mu4e 1.6.10; emacs 29.0.50

yes, thanks.  It does fix my bug report.

Stephen

On Fri, Mar 11 2022, Po Lu wrote:

> Po Lu <luangruo@yahoo.com> writes:
>
>> Indeed.  I'll look into that, thanks.
>
> Does this patch solve the problem?
>
> diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
> index 6d28e318ff..776f774172 100644
> --- a/lisp/net/browse-url.el
> +++ b/lisp/net/browse-url.el
> @@ -970,7 +970,13 @@ browse-url-process-environment
>  environment, otherwise just use the current environment."
>    (let ((display (or browse-url-browser-display (browse-url-emacs-display))))
>      (if display
> -     (cons (concat "DISPLAY=" display) process-environment)
> +     (cons (concat (if (and (eq window-system 'pgtk)
> +                               (equal (pgtk-backend-display-class)
> +                                      "GdkWaylandDisplay"))
> +                          "WAYLAND_DISPLAY="
> +                        "DISPLAY=")
> +                      display)
> +              process-environment)
>        process-environment)))
>  
>  (defun browse-url-emacs-display ()
>  






reply via email to

[Prev in Thread] Current Thread [Next in Thread]