[Utils] Use ‘cygstart’ to open documents in custom helm interface
This commit is contained in:
parent
73459ec88a
commit
d635236e48
|
@ -281,9 +281,13 @@ path."
|
||||||
|
|
||||||
(defun db/system-open (path)
|
(defun db/system-open (path)
|
||||||
"Open PATH with default program as defined by the underlying system."
|
"Open PATH with default program as defined by the underlying system."
|
||||||
(if on-windows
|
(cond
|
||||||
(w32-shell-execute "open" path)
|
((eq system-type 'windows-nt)
|
||||||
(start-process "" nil "xdg-open" path)))
|
(w32-shell-execute "open" path))
|
||||||
|
((eq system-type 'cygwin)
|
||||||
|
(start-process "" nil "cygstart" path))
|
||||||
|
(t
|
||||||
|
(start-process "" nil "xdg-open" path))))
|
||||||
|
|
||||||
(defvar db/helm-source-important-documents
|
(defvar db/helm-source-important-documents
|
||||||
'((name . "Important files")
|
'((name . "Important files")
|
||||||
|
|
Loading…
Reference in New Issue