Variable: shell-command-guess-open
shell-command-guess-open is a customizable variable defined in
dired-aux.el.gz.
Value
"open"
Documentation
A shell command to open a file externally.
This variable was added, or its default value changed, in Emacs 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defcustom shell-command-guess-open
(cond
((executable-find "xdg-open")
"xdg-open")
((memq system-type '(gnu/linux darwin))
"open")
((memq system-type '(windows-nt ms-dos))
"start")
((eq system-type 'cygwin)
"cygstart")
((executable-find "run-mailcap")
"run-mailcap"))
"A shell command to open a file externally."
:type 'string
:group 'dired
:version "30.1")