branch: elpa/helm commit 3f8c40ed912aa4fe47338a92e5d6106f987dd494 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Simplify helm-open-file-with-default-tool --- helm-utils.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/helm-utils.el b/helm-utils.el index 49c3034688..2099963a79 100644 --- a/helm-utils.el +++ b/helm-utils.el @@ -1052,13 +1052,10 @@ Assume regexp is a pcre based regexp." (helm-w32-shell-execute-open-file file) (start-process "helm-open-file-with-default-tool" nil - (cond ((eq system-type 'gnu/linux) - "xdg-open") - ((or (eq system-type 'darwin) ;; Mac OS X - (eq system-type 'macos)) ;; Mac OS 9 - "open") - ((eq system-type 'cygwin) - "cygstart")) + (helm-acase system-type + (gnu/linux "xdg-open") + ((darwin macos) "open") + (cygwin "cygstart")) file)))) (defun helm-open-dired (file)