On Windows 10 counsel-locate-action-extern just opens a cmd terminal (and then doesn't actually run start. The current version is:
(defun counsel-locate-action-extern (x)
"Use xdg-open shell command, or corresponding system command, on X."
(interactive (list (read-file-name "File: ")))
(call-process shell-file-name nil
nil nil
shell-command-switch
(format "%s %s"
(cl-case system-type
(darwin "open")
(windows-nt "start")
(t "xdg-open"))
(shell-quote-argument x))))
Changing it to the following worked for me:
(defun counsel-locate-action-extern (x)
"Use xdg-open shell command, or corresponding system command, on X."
(interactive (list (read-file-name "File: ")))
(if (eq system-type 'windows-nt)
(w32-shell-execute "open" x)
(call-process shell-file-name nil
nil nil
shell-command-switch
(format "%s %s"
(cl-case system-type
(darwin "open")
(t "xdg-open"))
(shell-quote-argument x)))))
(I really should (re)learn how to make pull requests.)
On Windows 10
counsel-locate-action-externjust opens acmdterminal (and then doesn't actually runstart. The current version is:Changing it to the following worked for me:
(I really should (re)learn how to make pull requests.)