Subject: bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el)

From: Juri Linkov <[email-masked]>
Date: Sun, 24 Oct 2021 22:08:43 +0300

> FWIW, my version is quite different:
>
>   (cond ((memq system-type '(darwin))
>          (call-process-shell-command (concat "open " (shell-quote-argument file))))
>         ((memq system-type '(windows-nt))
>          (w32-shell-execute "open" (convert-standard-filename file)))
>         ((memq system-type '(gnu/linux))
>          (call-process-shell-command (concat "xdg-open " (shell-quote-argument file))))

Indeed, these are good system-dependent default values for the new
hook-like user option.