On Tue, 21 May 2024 14:34:33 +0100 Antoine Beaupre wrote:

After upgrading from Emacs 28 to 29 and switching from xorg to
wayland, I have noticed emacs sometimes fail to open URLs.
[...]
*But* my bug here is this fails completely silently. No URL gets
opened at all, which is *really* disruptive

Unsure if it is related to Wayland or pgtk and it is almost certainly an
upstream issue rather then a Debian-specific bug.

The `browse-url' package spawns external processes using shoot and
forget approach that does not allow error handling.

There is another method to invoke external applications that is used in
`mailcap-view-file' and `org-open-file', but it has disadvantages as
well. It is not possible to detach external handler process from emacs,
so in some cases it is not possible to quit from Emacs keeping launched
applications running. Developers believed there is another problem, but
did not bother to explain it (discussions were long and rather
disappointing).

You may try to report the issue to the Emacs developers. However related
`browse-url' code has long history of changes and I am in doubts it can
be improved without improvements of the library used to spawn external
processes.

Reply via email to