When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart.
Looking into the function
browse-url-default-windows-browser I found out that it needed to call process
(defun browse-url-default-windows-browser (url &optional _new-window) "Invoke the MS-Windows system's default Web browser. The optional NEW-WINDOW argument is not used." <...> ((eq system-type 'cygwin) (call-process "cygstart" nil nil nil url))
But there is no
cygstart in MSYS2 according to its wiki How does MSYS2 differ from Cygwin. Though the variable
system-type really equals
'cygwin and cannot be changed to anything more appropriate.
How to fix this error?