On 20/07/2025 21:18, Ihor Radchenko wrote:
Max Nikulin writes:
https://list.orgmode.org/t7aqif$c2f$1...@ciao.gmane.io/
[PATCH] org.el: Use `call-process' to launch external viewers (was: Re:
[BUG] org-open-file immediately termininates when calling xdg-open that
calls emacsclient).
Fri, 3 Jun 2022 00:04:12 +0700
Comments should be updated.
...
The main question is effect of the patch on macOS, other complications
may be postponed.
What about updating your patch to only use `call-process' on gnu systems
and fallback to the existing code otherwise?
Emacs developers made `call-process' default with exception for other
systems like darwin and windows.
5e377f4fcc0 2024-09-06 09:47:33 +0200 Manuel Giraud: Make
`dired-do-open' work on more *nix systems
I do not like adding conditions inside `org-open-file'. It is already
excessively complex. On the other hand I can not figure out how to make
it more flexible without overwhelming configuration options.
Ideally users and developers who define new link types should be able to
just use the strategy default to the current OS. But since it appeared
to be fragile, users should be able to override default policy. I can
not figure out a source of resistance against using `browse-url' for URL
schemes with external handlers. People prefer to use some function to
start a process explicitly.