[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 3f8c40ed91 4/4: Simplify helm-open-file-with-default-
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/helm 3f8c40ed91 4/4: Simplify helm-open-file-with-default-tool |
|
Date: |
Mon, 11 Mar 2024 04:00:45 -0400 (EDT) |
branch: elpa/helm
commit 3f8c40ed912aa4fe47338a92e5d6106f987dd494
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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)