Max Nikulin <maniku...@gmail.com> writes: > On 18/05/2022 18:36, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> Sounds reasonable. However I just have tried a [[file:~/path/to/script]] >>> link running Org main HEAD and the file is opened in emacs (26.3) other >>> window. >> >> The behaviour is dependent on the OS-level mailcap defaults. What does >> (mailcap-mime-info nil) return for you? > > view-mode > > run-mailcap --norun ~/path/to/script
Note that mailcap.el does _not_ use run-mailcap or anything external. It is written purely in elisp. So, can you please report the output of M-: (mailcap-mime-info nil)? Best, Ihor