branch: elpa/helm
commit 81bfb239d5af0e861b453356d015c6d0cdac7f3d
Author: Martin Carpenter <martin.carpen...@gmail.com>
Commit: Martin Carpenter <martin.carpen...@gmail.com>

    Cygwin compatibility for helm-open-file-with-default-tool
    
    Fixes #2619
    
    Cygwin also provides an xdg-open(1) (from xdg-utils in X11) but
    cygstart(1) (from cygutils in Base) is more likely to be installed.
---
 helm-utils.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-utils.el b/helm-utils.el
index c0272d3291..ee11a4315c 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -1071,7 +1071,9 @@ Assume regexp is a pcre based regexp."
                             "xdg-open")
                            ((or (eq system-type 'darwin) ;; Mac OS X
                                 (eq system-type 'macos)) ;; Mac OS 9
-                            "open"))
+                            "open")
+                          ((eq system-type 'cygwin)
+                           "cygstart"))
                      file))))
 
 (defun helm-open-dired (file)

Reply via email to