modify the implementation of creature/open-in-external-app

"call-process" created a process than not child-process of emacs, this
is what I wanted in.
This commit is contained in:
zedhugh committed 2025-03-29 05:42:53 +08:00
1 parent 5c12415f9e
commit b91aa27f43
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@
(defun creature/open-in-external-app (file-path)
(if (eq system-type 'windows-nt)
(w32-shell-execute "open" (replace-regexp-in-string "/" "\\\\" file-path))
(start-process "" nil "xdg-open" file-path)))
(call-process "xdg-open" nil 0 nil file-path)))
(defun creature/open-file-or-directory-in-external-app (arg)
(interactive "P")